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-
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. callback_uri-
Type:
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-
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 aNULLGError*.The argument will left initialized to NULLby 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.