Skip to content

Commit

Permalink
google oauth support for youtube
Browse files Browse the repository at this point in the history
  • Loading branch information
lrvick committed Jul 18, 2012
1 parent fc6fd9d commit 5ec754f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/hyve.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
,{ query: query
, url_suffix: options.url_suffix
, result_type: options.result_type
, access_token: options.access_token
, api_key: options.api_key
, auth_user: options.auth_user
, auth_signature: options.auth_signature
Expand Down
4 changes: 2 additions & 2 deletions src/hyve.youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
interval : 8000,
result_type : 'videos', // videos,top_rated, most_popular, standard_feeds/most_recent, most_dicsussed, most_responded, recently_featured, on_the_web
feed_suffix : '', // '', standardfeeds/ - if '' result_type must be 'videos'
auth_user : '', // user for personal streams
access_token : '',
feed_urls : {
search: 'http://gdata.youtube.com/feeds/api/{{feed_suffix}}{{result_type}}?q={{query}}&time=today&orderby=published&format=5&max-results=20&v=2&alt=jsonc{{#&callback=#callback}}',
friends: 'https://gdata.youtube.com/feeds/api/users/{{auth_user}}/newsubscriptionvideos?v=2&alt=jsonc'
friends: 'https://gdata.youtube.com/feeds/api/users/default/newsubscriptionvideos?v=2&alt=jsonc&access_token={{ access_token }}{{#&callback=#callback}}'
},
claim : function(link,item){
if (link.search(/youtu.be|youtube.com.*v=/i) != -1){
Expand Down

0 comments on commit 5ec754f

Please sign in to comment.