Skip to content

Commit c7c1b37

Browse files
committed
Updated YouTube.php
This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info.
1 parent a1cf8a5 commit c7c1b37

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Google/Service/YouTube.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,10 @@ public function __construct(Google_Client $client)
955955
'location' => 'query',
956956
'type' => 'string',
957957
),
958+
'relevanceLanguage' => array(
959+
'location' => 'query',
960+
'type' => 'string',
961+
),
958962
'forMine' => array(
959963
'location' => 'query',
960964
'type' => 'boolean',
@@ -2966,6 +2970,12 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource
29662970
* 720p, though higher resolutions, like 1080p, might also be available.
29672971
* @opt_param string videoDuration The videoDuration parameter filters video
29682972
* search results based on their duration.
2973+
* @opt_param string relevanceLanguage The relevanceLanguage parameter instructs
2974+
* the API to return search results that are most relevant to the specified
2975+
* language. The parameter value is typically an ISO 639-1 two-letter language
2976+
* code. However, you should use the values zh-Hans for simplified Chinese and
2977+
* zh-Hant for traditional Chinese. Please note that results in other languages
2978+
* will still be returned if they are highly relevant to the search query term.
29692979
* @opt_param bool forMine The forMine parameter restricts the search to only
29702980
* retrieve videos owned by the authenticated user. If you set this parameter to
29712981
* true, then the type parameter's value must also be set to video.

0 commit comments

Comments
 (0)