Rest.OAuthProxy
Description: Reference for Rest.OAuthProxy

### Class

# RestOAuthProxy

#### Description

    final class Rest.OAuthProxy : Rest.Proxy {
      /* No available fields */
    }

No description available.

#### Hierarchy

#### Ancestors

- RestProxy
- GObject

#### Constructors

###### oauth_proxy_new

Create a new `OAuthProxy` for the specified endpoint `url_format`, using the specified API key and secret.

###### oauth_proxy_new_with_token

Create a new `OAuthProxy` for the specified endpoint `url_format`, using the specified API key and secret.

#### Instance methods

###### oauth_proxy_access_token

Perform the Access Token phase of OAuth, invoking `function` (defaulting to “access_token” if `function` is NULL).

###### oauth_proxy_access_token_async

Perform the Access Token phase of OAuth, invoking `function` (defaulting to “access_token” if `function` is NULL).

###### oauth_proxy_access_token_finish

No description available.

###### oauth_proxy_get_consumer_key

No description available.

###### oauth_proxy_get_consumer_secret

No description available.

###### oauth_proxy_get_service_url

No description available.

###### oauth_proxy_get_sign_method

No description available.

###### oauth_proxy_get_signature_host

Get the signature hostname used when creating a signature base string.

###### oauth_proxy_get_token

Get the current request or access token.

###### oauth_proxy_get_token_secret

Get the current request or access token secret.

###### oauth_proxy_is_echo

No description available.

###### oauth_proxy_is_oauth10a

Determines if the server supports OAuth 1.0a with this proxy. This is only valid after `oauth_proxy_request_token()` or `oauth_proxy_request_token_async()` has been called.

###### oauth_proxy_new_echo_proxy

Create a new OAuth Echo proxy.

###### oauth_proxy_request_token

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

###### oauth_proxy_request_token_async

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

###### oauth_proxy_request_token_finish

Finishes an operation started with `oauth_proxy_request_token_async()`

###### oauth_proxy_set_oauth10a

No description available.

###### oauth_proxy_set_signature_host

Set the signature hostname used when creating a signature base string.

###### oauth_proxy_set_token

Set the access token.

###### oauth_proxy_set_token_secret

Set the access token secret.

##### Methods inherited from RestProxy (8)

###### rest_proxy_add_soup_feature

This method can be used to add specific features to the `SoupSession` objects that are used by librest for its HTTP connections. For example, if one needs extensive control over the cookies which are used for the REST HTTP communication, it’s possible to get full access to libsoup cookie API by using.

Available since: 0.7.92

###### rest_proxy_bind

No description available.

###### rest_proxy_bind_valist

No description available.

###### rest_proxy_get_user_agent

No description available.

###### rest_proxy_new_call

Create a new `RestProxyCall` for making a call to the web service. This call is one-shot and should not be re-used for making multiple calls.

###### rest_proxy_set_user_agent

No description available.

###### rest_proxy_simple_run

No description available.

###### rest_proxy_simple_run_valist

No description available.

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### Rest.OAuthProxy:consumer-key

No description available.

###### Rest.OAuthProxy:consumer-secret

No description available.

###### Rest.OAuthProxy:signature-host

No description available.

###### Rest.OAuthProxy:signature-method

No description available.

###### Rest.OAuthProxy:token

No description available.

###### Rest.OAuthProxy:token-secret

No description available.

##### Properties inherited from RestProxy (8)

###### Rest.Proxy:binding-required

No description available.

###### Rest.Proxy:disable-cookies

No description available.

###### Rest.Proxy:password

No description available.

###### Rest.Proxy:ssl-ca-file

No description available.

###### Rest.Proxy:ssl-strict

No description available.

###### Rest.Proxy:url-format

No description available.

###### Rest.Proxy:user-agent

No description available.

###### Rest.Proxy:username

No description available.

#### Signals

##### Signals inherited from RestProxy (1)

###### Rest.Proxy::authenticate

Emitted when the proxy requires authentication. If credentials are available, set the ‘username’ and ‘password’ properties on `proxy` and return `TRUE` from the callback. This will cause the signal emission to stop, and librest will try to connect with these credentials If these credentials fail, the signal will be emitted again, with `retrying` set to `TRUE`, which will continue until `FALSE` is returned from the callback.

##### Signals inherited from GObject (1)

###### GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct RestOAuthProxyClass {
      RestProxyClass parent_class;

    }

###### Class members

`parent_class` |
    RestProxyClass
| No description available.