summaryrefslogtreecommitdiff
path: root/tests/oauth/README
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-01-13 16:52:33 -0800
committerZach Copley <zach@status.net>2010-01-14 02:41:10 +0000
commitccb933f0263360e93a06ac28d3876bf59f5460ed (patch)
tree6faa0494ee170334dde959c5ccec37536c08d6b3 /tests/oauth/README
parentee8c1ec91cfec4ac5b490a7719e28036198635ea (diff)
Some rough test scripts for poking at the OAuth system
Diffstat (limited to 'tests/oauth/README')
-rw-r--r--tests/oauth/README22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/oauth/README b/tests/oauth/README
new file mode 100644
index 000000000..ea4aabadb
--- /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 and request token, token secret and a url to authorize it. Once
+you get the token/secret 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 an protected API
+resource:
+
+php verifycreds.php --oauth_token=cf2de7665f0dda0a82c2dc39b01be7f9 --token_secret=4524c3b712200138e1a4cff2e9ca83d8
+