Sure, you could use OAuth 2.0 tokens with the YouTube API in any call
that requires authentication. The existing GData client libraries
don't natively support OAuth 2.0 yet, but you can manually set the
Authorization header from your code. It should look like
Authorization: OAuth token="OAUTH2_ACCESS_TOKEN"
(You'll have to take care of doing things like refreshing the access
token yourself.)
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Sep 25, 1:26 am, Ramiro Araujo <rama.ara...@gmail.com> wrote:
> Hi
> I just cant find anything about this. I thought I could use the OAuth 2.0
> authentication, which is easier and quite the standard now days. I got
> correctly authenticated and got my access token... I know it's experimental
> yet, but I'm wondering if I can be used to post, say, comments and
> likes/unlikes. Any help is appreciated, honestly it feels like Facebook api
> 2 years ago, with tons of tabs opened, old tutorials, and nothing happening
> :D
>
> Cheers
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment