Method

RestOAuthProxyrequest_token_async

Declaration [src]

void
oauth_proxy_request_token_async (
  OAuthProxy* proxy,
  const char* function,
  const char* callback_uri,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

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).

This method will return once the method has been queued, callback will be invoked when it has completed.

This method completes asynchronously. Use oauth_proxy_request_token_finish() inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

function

Type: const char*

The function name to invoke.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
callback_uri

Type: const char*

The callback URI.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
cancellable

Type: GCancellable

No description available.

The argument can be NULL.
The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

A OAuthProxyAuthCallback to invoke on completion.

The argument can be NULL.
user_data

Type: gpointer

User data to pass to callback.

The argument can be NULL.
The data is owned by the caller of the method.