]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - tests/oauth/README
dd76feb0c6b531e685fcd51e9d65c9ca686ff5c5
[quix0rs-gnu-social.git] / tests / oauth / README
1 Some very rough test scripts for hitting up the OAuth endpoints.
2
3 Note: this works best if you register an OAuth application, leaving
4 the callback URL blank.
5
6 Put your instance info and consumer key and secret in oauth.ini
7
8 Example usage:
9 --------------
10
11 php getrequesttoken.php
12
13 Gets a request token, token secret and a url to authorize it.  Once
14 you authorize the request token you can exchange it for an access token...
15
16 php exchangetokens.php --oauth_token=b9a79548a88c1aa9a5bea73103c6d41d --token_secret=4a47d9337fc0202a14ab552e17a3b657
17
18 Once you have your access token, go ahead and try a protected API
19 resource:
20
21 php verifycreds.php --oauth_token=cf2de7665f0dda0a82c2dc39b01be7f9 --token_secret=4524c3b712200138e1a4cff2e9ca83d8
22