daviddesberg / PHPoAuthLib

PHP 5.3+ oAuth 1/2 Client Library
Other
1.09k stars 454 forks source link

Twitter App OAuth (OAuth2) implemention #394

Open Gomes81 opened 9 years ago

Gomes81 commented 9 years ago

I'm trying to implement OAuth2 on twitter (for App OAuth). In order to accomplish this I created a class TwitterApp in the OAuth2 folder, but now in the requestAccessToken method I need to change the $bodyParams['grant_type'] to 'client_credentials' instead of 'authorization_code'. Am I doing it right? If I doing it right there should also be a method AbstractService::getExtraOAuthBody(), right?

logical-and commented 9 years ago

Hello, can you please report an issue (about getExtraOAuthBody) to updated library, so I will be able to make a fix for this issue. Thank you for suggestion, btw

Gomes81 commented 8 years ago

Hi, sorry for my late response, but is this lib deprecated? If so, why is not marked so yet? Is your library ready for production? Thanks