Method for fetching an access token from the token endpoint. This is the first step in the OAuth 1 workflow. A request token is obtained by making a signed post request to url. The token is then parsed from the application/x-www-form-urlencoded response and ready to
(self, url, **kwargs)
| 102 | return add_params_to_uri(url, kwargs.items()) |
| 103 | |
| 104 | def fetch_request_token(self, url, **kwargs): |
| 105 | """Method for fetching an access token from the token endpoint. |
| 106 | |
| 107 | This is the first step in the OAuth 1 workflow. A request token is |
| 108 | obtained by making a signed post request to url. The token is then |
| 109 | parsed from the application/x-www-form-urlencoded response and ready |
| 110 | to be used to construct an authorization url. |
| 111 | |
| 112 | :param url: Request Token endpoint. |
| 113 | :param kwargs: Extra parameters to include for fetching token. |
| 114 | :return: A Request Token dict. |
| 115 | """ |
| 116 | return self._fetch_token(url, **kwargs) |
| 117 | |
| 118 | def fetch_access_token(self, url, verifier=None, **kwargs): |
| 119 | """Method for fetching an access token from the token endpoint. |