Constructor
RestOAuthProxynew_with_token
Declaration [src]
RestProxy*
oauth_proxy_new_with_token (
const char* consumer_key,
const char* consumer_secret,
const char* token,
const char* token_secret,
const gchar* url_format,
gboolean binding_required
)
Description [src]
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 rest_proxy_bind() before invoking the proxy.
Parameters
consumer_key-
Type:
const char*The Consumer Key.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. consumer_secret-
Type:
const char*The Consumer Secret.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. token-
Type:
const char*The Access Token.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. token_secret-
Type:
const char*The Token Secret.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. url_format-
Type:
const gchar*The endpoint URL.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. binding_required-
Type:
gbooleanWhether the URL needs to be bound before calling.
Return value
Type: RestProxy
A new OAuthProxy.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |