OAuthProxy
Description:
[ CCode ( has_construct_function = false , type = "RestProxy*" ) ]
public OAuthProxy (string consumer_key, string consumer_secret, string url_format, bool binding_required)
public OAuthProxy (string consumer_key, string consumer_secret, string url_format, bool binding_required)
Create a new OAuthProxy for the specified endpoint url_format
, using
the specified API key and secret.
This proxy won't have the Token or Token Secret set so as such will be unauthorised. If the tokens are unknown then request_token and access_token should be called to do the OAuth authorisation, or the tokens should be set using set_token and set_token_secret.
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 |
url_format |
the endpoint URL |
binding_required |
whether the URL needs to be bound before calling |
Returns:
A new OAuthProxy. |