diff options
author | Evan Prodromou <evan@status.net> | 2010-01-24 22:42:29 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-24 22:42:29 -0500 |
commit | 536170d7884a58d279a01e5ed5fbc267840a17ba (patch) | |
tree | 4a978b909939ba238af500d982f48735d0953943 /tests/oauth/README | |
parent | e6cf293db8c465b21899fd328152a991501a5038 (diff) | |
parent | 4daf76212a6802863d20c6af7597eddded227ae8 (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'tests/oauth/README')
-rw-r--r-- | tests/oauth/README | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/oauth/README b/tests/oauth/README new file mode 100644 index 000000000..dd76feb0c --- /dev/null +++ b/tests/oauth/README @@ -0,0 +1,22 @@ +Some very rough test scripts for hitting up the OAuth endpoints. + +Note: this works best if you register an OAuth application, leaving +the callback URL blank. + +Put your instance info and consumer key and secret in oauth.ini + +Example usage: +-------------- + +php getrequesttoken.php + +Gets a request token, token secret and a url to authorize it. Once +you authorize the request token you can exchange it for an access token... + +php exchangetokens.php --oauth_token=b9a79548a88c1aa9a5bea73103c6d41d --token_secret=4a47d9337fc0202a14ab552e17a3b657 + +Once you have your access token, go ahead and try a protected API +resource: + +php verifycreds.php --oauth_token=cf2de7665f0dda0a82c2dc39b01be7f9 --token_secret=4524c3b712200138e1a4cff2e9ca83d8 + |