diff options
| author | st4lk <myhappydo@gmail.com> | 2015-03-26 21:09:22 +0300 |
|---|---|---|
| committer | st4lk <myhappydo@gmail.com> | 2015-03-26 21:09:22 +0300 |
| commit | 4cc868b45ef7291dba89162551754c0be8a2baf9 (patch) | |
| tree | 81a1d51921d62d4f61a9dbb8b35285e5c420df1d /docs | |
| parent | fd239fca84644896b1971cf24bc6213d065adb86 (diff) | |
| download | oauthlib-4cc868b45ef7291dba89162551754c0be8a2baf9.tar.gz | |
precise oauth1 client workflow
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/oauth1/client.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/oauth1/client.rst b/docs/oauth1/client.rst index b209196..2586075 100644 --- a/docs/oauth1/client.rst +++ b/docs/oauth1/client.rst @@ -28,15 +28,16 @@ Using the Client the credentials from before when obtaining an access token:: client = oauthlib.oauth1.Client('client_key', client_secret='your_secret', - resource_owner_secret='the_new_secret', verifier='the_verifier') + resource_owner_key='the_request_token', resource_owner_secret='the_request_token_secret', + verifier='the_verifier') uri, headers, body = client.sign('http://example.com/access_token') The provider will now give you an access token and a new token secret which you will use to access protected resources:: client = oauthlib.oauth1.Client('client_key', client_secret='your_secret', - resource_owner_key='the_access_token', resource_owner_secret='the_token_secret') - uri, headers, body = client.sign('http://example.com/access_token') + resource_owner_key='the_access_token', resource_owner_secret='the_access_token_secret') + uri, headers, body = client.sign('http://example.com/protected_resource') .. _`requests-oauthlib`: https://github.com/requests/requests-oauthlib |
