|
470 | 470 | Raises:<br> |
471 | 471 | <a href="#YouTubeError">YouTubeError</a>: rating_value must be between 1 and 5 in <a href="#YouTubeService-AddRating">AddRating</a>().</tt></dd></dl> |
472 | 472 |
|
473 | | -<dl><dt><a name="YouTubeService-AddSubscriptionToChannel"><strong>AddSubscriptionToChannel</strong></a>(self, username)</dt><dd><tt>Add a new channel subscription to the currently authenticated users<br> |
| 473 | +<dl><dt><a name="YouTubeService-AddSubscriptionToChannel"><strong>AddSubscriptionToChannel</strong></a>(self, username_to_subscribe_to, my_username<font color="#909090">='default'</font>)</dt><dd><tt>Add a new channel subscription to the currently authenticated users<br> |
474 | 474 | account.<br> |
475 | 475 | <br> |
476 | 476 | Needs authentication.<br> |
477 | 477 | <br> |
478 | 478 | Args:<br> |
479 | | - username: A string representing the username of the channel to<br> |
480 | | - which we want to subscribe to.<br> |
| 479 | + username_to_subscribe_to: A string representing the username of the <br> |
| 480 | + channel to which we want to subscribe to.<br> |
| 481 | + my_username: An optional string representing the name of the user which<br> |
| 482 | + we want to subscribe. Defaults to currently authenticated user.<br> |
481 | 483 | <br> |
482 | 484 | Returns:<br> |
483 | 485 | A new YouTubeSubscriptionEntry if successfully posted.</tt></dd></dl> |
484 | 486 |
|
485 | | -<dl><dt><a name="YouTubeService-AddSubscriptionToFavorites"><strong>AddSubscriptionToFavorites</strong></a>(self, username)</dt><dd><tt>Add a new subscription to a users favorites to the currently<br> |
| 487 | +<dl><dt><a name="YouTubeService-AddSubscriptionToFavorites"><strong>AddSubscriptionToFavorites</strong></a>(self, username, my_username<font color="#909090">='default'</font>)</dt><dd><tt>Add a new subscription to a users favorites to the currently<br> |
486 | 488 | authenticated user's account.<br> |
487 | 489 | <br> |
488 | 490 | Needs authentication<br> |
489 | 491 | <br> |
490 | 492 | Args:<br> |
491 | 493 | username: A string representing the username of the user's favorite feed<br> |
492 | 494 | to subscribe to.<br> |
| 495 | + my_username: An optional string representing the username of the user<br> |
| 496 | + that is to be subscribed. Defaults to currently authenticated user.<br> |
| 497 | + <br> |
| 498 | +Returns:<br> |
| 499 | + A new YouTubeSubscriptionEntry if successful.</tt></dd></dl> |
| 500 | + |
| 501 | +<dl><dt><a name="YouTubeService-AddSubscriptionToQuery"><strong>AddSubscriptionToQuery</strong></a>(self, query, my_username<font color="#909090">='default'</font>)</dt><dd><tt>Add a new subscription to a specific keyword query to the currently<br> |
| 502 | +authenticated user's account.<br> |
| 503 | + <br> |
| 504 | +Needs authentication<br> |
| 505 | + <br> |
| 506 | +Args:<br> |
| 507 | + query: A string representing the keyword query to subscribe to.<br> |
| 508 | + my_username: An optional string representing the username of the user<br> |
| 509 | + that is to be subscribed. Defaults to currently authenticated user.<br> |
493 | 510 | <br> |
494 | 511 | Returns:<br> |
495 | 512 | A new YouTubeSubscriptionEntry if successful.</tt></dd></dl> |
|
792 | 809 | feed is to be retrieved. Defaults to the currently authenticted user.<br> |
793 | 810 | <br> |
794 | 811 | Returns:<br> |
795 | | - A YouTubeVideoSubscriptionFeed if successfully retrieved.<br> |
796 | | - <br> |
797 | | -Raises:<br> |
798 | | - <a href="#YouTubeError">YouTubeError</a>: You must provide at least a uri or a username to the<br> |
799 | | - <a href="#YouTubeService-GetYouTubeSubscriptionFeed">GetYouTubeSubscriptionFeed</a>() method.</tt></dd></dl> |
| 812 | + A YouTubeVideoSubscriptionFeed if successfully retrieved.</tt></dd></dl> |
800 | 813 |
|
801 | 814 | <dl><dt><a name="YouTubeService-GetYouTubeUserEntry"><strong>GetYouTubeUserEntry</strong></a>(self, uri<font color="#909090">=None</font>, username<font color="#909090">=None</font>)</dt><dd><tt>Retrieve a YouTubeUserEntry.<br> |
802 | 815 | <br> |
|
1887 | 1900 | <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> |
1888 | 1901 | <td width="100%"><strong>UNKOWN_ERROR</strong> = 1000<br> |
1889 | 1902 | <strong>YOUTUBE_BAD_REQUEST</strong> = 400<br> |
1890 | | -<strong>YOUTUBE_COMPLAINT_CATEGORY_SCHEME</strong> = 'http://gdata.youtube.com/schemas/2007/complaint-reasons.cat'<br> |
| 1903 | +<strong>YOUTUBE_COMPLAINT_CATEGORY_SCHEME</strong> = 'http://gdata.youtube.com/schemas/complaint-reasons.cat'<br> |
1891 | 1904 | <strong>YOUTUBE_COMPLAINT_CATEGORY_TERMS</strong> = ('PORN', 'VIOLENCE', 'HATE', 'DANGEROUS', 'RIGHTS', 'SPAM')<br> |
1892 | 1905 | <strong>YOUTUBE_CONFLICT</strong> = 409<br> |
1893 | 1906 | <strong>YOUTUBE_CONTACT_CATEGORY</strong> = ('Friends', 'Family')<br> |
|
1902 | 1915 | <strong>YOUTUBE_QUERY_VALID_ORDERBY_PARAMETERS</strong> = ('updated', 'viewCount', 'rating', 'relevance')<br> |
1903 | 1916 | <strong>YOUTUBE_QUERY_VALID_RACY_PARAMETERS</strong> = ('include', 'exclude')<br> |
1904 | 1917 | <strong>YOUTUBE_QUERY_VALID_TIME_PARAMETERS</strong> = ('today', 'this_week', 'this_month', 'all_time')<br> |
1905 | | -<strong>YOUTUBE_RATING_LINK_REL</strong> = 'http://gdata.youtube.com/schemas/2007#video.ratings'<br> |
| 1918 | +<strong>YOUTUBE_RATING_LINK_REL</strong> = 'http://gdata.youtube.com/schemas#video.ratings'<br> |
| 1919 | +<strong>YOUTUBE_SCHEMA</strong> = 'http://gdata.youtube.com/schemas'<br> |
1906 | 1920 | <strong>YOUTUBE_SERVER</strong> = 'gdata.youtube.com'<br> |
1907 | 1921 | <strong>YOUTUBE_SERVICE</strong> = 'youtube'<br> |
1908 | 1922 | <strong>YOUTUBE_STANDARDFEEDS</strong> = ('most_recent', 'recently_featured', 'top_rated', 'most_viewed', 'watch_on_mobile')<br> |
|
1916 | 1930 | <strong>YOUTUBE_STANDARD_TOP_FAVORITES_URI</strong> = 'http://gdata.youtube.com/feeds/api/standardfeeds/top_favorites'<br> |
1917 | 1931 | <strong>YOUTUBE_STANDARD_TOP_RATED_URI</strong> = 'http://gdata.youtube.com/feeds/api/standardfeeds/top_rated'<br> |
1918 | 1932 | <strong>YOUTUBE_STANDARD_WATCH_ON_MOBILE_URI</strong> = 'http://gdata.youtube.com/feeds/api/standardfeeds/watch_on_mobile'<br> |
| 1933 | +<strong>YOUTUBE_SUBSCRIPTION_CATEGORY_SCHEME</strong> = 'http://gdata.youtube.com/schemas/subscriptiontypes.cat'<br> |
1919 | 1934 | <strong>YOUTUBE_SUPPORTED_UPLOAD_TYPES</strong> = ('mov', 'avi', 'wmv', 'mpg', 'quicktime')<br> |
1920 | 1935 | <strong>YOUTUBE_UPLOAD_TOKEN_URI</strong> = 'http://gdata.youtube.com/action/GetUploadToken'<br> |
1921 | 1936 | <strong>YOUTUBE_UPLOAD_URI</strong> = 'http://uploads.gdata.youtube.com/feeds/api/users'<br> |
|
0 commit comments