Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method that retrieves an oauth Request Token for 3-legged authentication #75

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

bijanmmarkes
Copy link

The purpose of this pull-request is to use the existing infrastructure of this plugin to retrieve a request token from Twitter that can be used to generate 3-legged authentication flows. Some changes had to be made to the Request method in order to properly decode the response from twitter. (text/html)

I created a custom getRequestToken method to make it simple to retrieve an access token in array format that can then be passed back to the client side as JSON rather than a URL Encoded string.

Links:

Changelog:

  • Refactored the Request Method to decode and return an array from Twitter responses that are formatted as text/html and application/x-www-form-urlencoded - POST oauth/request_token.
  • Added a method that utilizes the existing Request Method and retrieves an oauth request token from twitter to be used for 3-legged authentication.
  • Revised Readme with examples on how to use the new method.
  • Updated PhpDoc and some cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants