public AcquireAccessToken ( string uri, string method, string pin, string user_agent ) : |
||
uri | string | |
method | string | |
pin | string | |
user_agent | string | |
return |
To use this method, you must first set the oauth_token to the value of the request token. Eg, oauth["token"] = "whatever".
According to the OAuth spec, you need to do this only ONCE per application. In other words, the first time the application is run. The normal oauth workflow is: (1) get a request token, (2) use that to acquire an access token (which requires explicit user approval), then (3) using that access token, invoke protected services. The first two steps need to be done only once per application.
For Twitter, at least, you can cache the access tokens indefinitely; Twitter says they never expire. However, other oauth services may not do the same. Also: the user may at any time revoke his authorization for your app, in which case you need to perform the first 2 steps again.
public AcquireAccessToken ( string uri, string method, string pin, string user_agent ) : |
||
uri | string | |
method | string | |
pin | string | |
user_agent | string | |
return |