consumer_key
:d208adaf663a85029c33f55ce73d2705
consumer_secrect
:9faba5ec4c19aa68ca96511201b20f69
- Initiate url:
http://domain.com/oauth/initiate
- Authorize url:
http://domain.com/admin/oauth_authorize
- Token request url:
http://domain.com/oauth/token
- Callback url (for dumping returned
oauth_token
andoauth_verifier
): http://domain.com/callback.php
# callback.php
<?php print_r($_GET); ?>
Authorization: OAuth oauth_consumer_key="consumer_key",oauth_signature_method="PLAINTEXT",oauth_signature="consumer_secret&",oauth_callback="callback_url"
E.g:
Authorization: OAuth oauth_consumer_key="d208adaf663a85029c33f55ce73d2705",oauth_signature_method="PLAINTEXT",oauth_signature="9faba5ec4c19aa68ca96511201b20f69&",oauth_callback="http://domain.com/callback.php"
==> Response:
oauth_token=ca27cc39c40d7e8dd6b8712f1f1471b1&oauth_token_secret=fc9fb4880ef0cb456808bbc101e14e8a&oauth_callback_confirmed=true
Take note the oauth_token
and oauth_token_secret
http://domain.com/admin/oauth_authorize?oauth_token=ca27cc39c40d7e8dd6b8712f1f1471b1
==> Login and authorize this app.
==> Redirect to Callback url:
Array ( [oauth_token] => ca27cc39c40d7e8dd6b8712f1f1471b1 [oauth_verifier] => bf4a49d78505fc69351c2a46dc9b3cef )
Take note the oauth_verifier
Authorization: OAuth oauth_consumer_key="consumer_key",oauth_signature_method="PLAINTEXT",oauth_signature="consumer_secret&oauth_token_secret",oauth_token="oauth_token",oauth_verifier="oauth_verifier"
E.g:
Authorization: OAuth oauth_consumer_key="d208adaf663a85029c33f55ce73d2705",oauth_signature_method="PLAINTEXT",oauth_signature="9faba5ec4c19aa68ca96511201b20f69&fc9fb4880ef0cb456808bbc101e14e8a",oauth_token="ca27cc39c40d7e8dd6b8712f1f1471b1",oauth_verifier="bf4a49d78505fc69351c2a46dc9b3cef"
==> Response:
oauth_token=6180ce11e850940d0d74fde58c9c8d45&oauth_token_secret=81d0352c9a285def7418bca55093caf9
Take note the new oauth_token
and oauth_token_secret
Authorization: OAuth oauth_consumer_key="consumer_key",oauth_signature_method="PLAINTEXT",oauth_signature="consumer_secret&new_oauth_token_secret",oauth_token="new_oauth_token"
E.g:
Authorization: OAuth oauth_consumer_key="d208adaf663a85029c33f55ce73d2705",oauth_signature_method="PLAINTEXT",oauth_signature="9faba5ec4c19aa68ca96511201b20f69&81d0352c9a285def7418bca55093caf9",oauth_token="6180ce11e850940d0d74fde58c9c8d45"