Method

RestOAuthProxyrequest_token

Declaration [src]

gboolean
oauth_proxy_request_token (
  OAuthProxy* proxy,
  const char* function,
  const char* callback_uri,
  GError** error
)

Description [src]

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

The value of callback depends on whether you wish to use OAuth 1.0 or 1.0a. If you wish to use 1.0 then callback must be NULL. To use 1.0a then callback should either be your callback URI, or “oob” (out-of-band).

Parameters

function 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.
callback_uri const char*
 

The callback URI.

 The data is owned by the caller of the function.
 The value 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.