You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+32-4
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,9 @@ A common OAuth flow using **RSOAuthEngine** should go like this:
26
26
8. Fill the access token using `fillTokenWithResponseBody:type` (use `RSOAuthAccessToken` as type).
27
27
9. From now on, all requests sent with `enqueueSignedOperation` will be signed with your tokens.
28
28
29
-
Alternatively you could use `setAccessToken:secret` after initialization to define a previously stored access token.
29
+
Alternatively you could use `setAccessToken:secret` after initialization to define a previously stored access token. If you need or want to use xAuth instead of the request token/authorize workflow, please take a look at the Instapaper demo.
30
30
31
-
## Demo
31
+
## Twitter Demo
32
32
33
33
<table>
34
34
<tr>
@@ -38,7 +38,7 @@ Alternatively you could use `setAccessToken:secret` after initialization to defi
38
38
<td valign="top">
39
39
<h3>About</h3>
40
40
41
-
<p><strong>RSOAuthEngine</strong> comes with a sample project that demonstrates how to use it to authenticate with Twitter. It includes a basic Twitter engine that implements Twitter's OAuth authentication flow and allows you to post a tweet. It also shows you how to persist the OAuth access token in the Keychain. The Twitter engine should not be considered production code, and is only included to demonstrate <strong>RSOAuthEngine</strong>.</p>
41
+
<p>This sample project demonstrates how to use <strong>RSOAuthEngine</strong> to authenticate with Twitter. It includes a basic engine that implements Twitter's OAuth authentication flow and allows you to post a tweet. It also shows you how to persist the OAuth access token in the Keychain. The Twitter engine should not be considered production code, and is only included to demonstrate <strong>RSOAuthEngine</strong>.</p>
42
42
43
43
<h3>Building</h3>
44
44
@@ -56,9 +56,37 @@ Alternatively you could use `setAccessToken:secret` after initialization to defi
<p>This sample project demonstrates how to use <strong>RSOAuthEngine</strong> with xAuth to authenticate with Instapaper. It includes a basic engine that implements Instapapers's xAuth authentication flow and allows you to add a bookmark to your account. It also shows you how to persist the OAuth access token in the Keychain. The Instapaper engine should not be considered production code, and is only included to demonstrate <strong>RSOAuthEngine</strong>.</p>
70
+
71
+
<h3>Building</h3>
72
+
73
+
<p>To build the demo project, follow these steps:</p>
74
+
75
+
<ol>
76
+
<li>In the project directory, run <code>git submodule update --init</code> to retrieve MKNetworkKit (added to the project as a submodule).</li>
77
+
<li>Put your consumer key and secret at the top of <code>RSInstapaperEngine.m</code> and remove the <code>#error</code> macro. If you don't have a consumer key/secret, register an app at <ahref="http://www.instapaper.com/main/request_oauth_consumer_token">this page</a> to get a pair. <strong>Important</strong>: most Instapaper API methods are only available to users with a Subscription account.</li>
78
+
</ol>
79
+
80
+
<h3>Tips</h3>
81
+
82
+
<p>Swipe from left to right in the status message to clear previously stored OAuth tokens.</p>
83
+
</td>
84
+
</tr>
85
+
</table>
86
+
59
87
## Compatibility
60
88
61
-
Currently this engine has only been tested with Twitter. If you use **RSOAuthEngine** to implement OAuth authentication with another service, please let me know so I can update this session.
89
+
Currently this engine has been tested with Twitter and Instapaper. If you use **RSOAuthEngine** to implement OAuth authentication with another service, please let me know so I can update this session.
0 commit comments