Closed amitamb closed 12 years ago
hi there all documentation is in the youtube api , for oauth2 you can go here
https://developers.google.com/youtube/2.0/developers_guide_protocol_oauth2
but I made into the wiki a how to for use oauth 2 with our gem, you can see it here
I hope that this help
https://github.com/kylejginavan/youtube_it/wiki/How-To:-Use-OAuth-2
I am new to OAuth & OAuth2. It looks like from looking at pull request and doumentation youtube_it supports OAuth2 but I could not find a good documentation for it.
Following pull request was helpful
https://github.com/kylejginavan/youtube_it/pull/46/files
By going the OAuth2 documentation
https://github.com/intridea/oauth2
I creating following actions to test OAuth2 support
There are two problems here
Current version is giving OAuth2 Error at client.profile call. Other thing is when I inspect returned token (i.e. @token) it does not have resresh_token. Furthermore following documentation suggests that we should pass grant_type parameter in token request
https://developers.google.com/youtube/2.0/developers_guide_protocol_oauth2#OAuth2_Server_Side_Web_Applications_Flow
But I could not set it as parameter in token request call.
Could someone shed light on how to use it. If possible also update documentation to make it more clear on usage otherwise I will send pull request once I understand it.