Rest.OAuthProxy.access_token

### Method

# Rest OAuthProxyaccess_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` | `const char*`
| The function name to invoke.
| The data is owned by the caller of the function.
| The string is a NUL terminated UTF-8 string.
`verifier` | `const char*`
| The verifier.
| The data is owned by the caller of the function.
| The string is a NUL terminated UTF-8 string.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `gboolean`
| `TRUE` on success, or `FALSE` on failure. On failure `error` is set.