OAuthProxy.with_token
Description:
[ CCode ( has_construct_function = false , type = "RestProxy*" ) ]
public OAuthProxy.with_token (string consumer_key, string consumer_secret, string token, string token_secret, string url_format, bool binding_required)
public OAuthProxy.with_token (string consumer_key, string consumer_secret, string token, string token_secret, string url_format, bool binding_required)
Create a new OAuthProxy for the specified endpoint url_format, using
the specified API key and secret.
token and token_secret are used for the Access Token and Token Secret, so if they are still valid then this proxy is
authorised.
Set binding_required to true if the URL contains string formatting operations (for example "http://foo.com/%s". These
must be expanded using bind before invoking the proxy.
Parameters:
| consumer_key |
the Consumer Key |
| consumer_secret |
the Consumer Secret |
| token |
the Access Token |
| token_secret |
the Token Secret |
| url_format |
the endpoint URL |
| binding_required |
whether the URL needs to be bound before calling |
Returns:
|
A new OAuthProxy. |