Method

RestOAuthProxyaccess_token

Declaration [src]

gboolean
oauth_proxy_access_token (
  OAuthProxy* proxy,
  const char* function,
  const char* verifier,
  GError** error
)

Description [src]

Perform the Access Token phase of OAuth, invoking function (defaulting to “access_token” if function is NULL).

verifier is only used if you are using OAuth 1.0a. This is either the “oauth_verifier” parameter that was passed to your callback URI, or a string that the user enters in some other manner (for example in a popup dialog) if “oob” was passed to oauth_proxy_request_token(). For OAuth 1.0, pass NULL.

Parameters

function

Type: const char*

The function name to invoke.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
verifier

Type: const char*

The verifier.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
error

Type: GError **

The return location for a recoverable error.

The argument can be NULL.
If the return location is not NULL, then you must initialize it to a NULL GError*.
The argument will left initialized to NULL by the method if there are no errors.
In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.

Return value

Type: gboolean

TRUE on success, or FALSE on failure. On failure error is set.