request_token_async


Description:

public bool request_token_async (string function, string callback_uri, OAuthProxyAuthCallback callback, Object weak_object) throws Error

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.

Parameters:

this

an OAuthProxy

function

the function name to invoke

callback_uri

the callback URI

callback

a OAuthProxyAuthCallback to invoke on completion

weak_object

Object to weakly reference and tie the lifecycle of the method call too

user_data

user data to pass to callback

Returns:

true if the method was successfully queued, or false on failure. On failure error is set.




2022 vala-language.org