OAuthProxy

OAuthProxy

Synopsis

                    OAuthProxy;
RestProxy*          oauth_proxy_new                     (const char *consumer_key,
                                                         const char *consumer_secret,
                                                         const gchar *url_format,
                                                         gboolean binding_required);
void                (*OAuthProxyAuthCallback)           (OAuthProxy *proxy,
                                                         GError *error,
                                                         GObject *weak_object,
                                                         gpointer userdata);
void                oauth_proxy_auth_step               (OAuthProxy *proxy,
                                                         const char *fragment);
gboolean            oauth_proxy_auth_step_async         (OAuthProxy *proxy,
                                                         const char *fragment,
                                                         OAuthProxyAuthCallback callback,
                                                         GObject *weak_object,
                                                         gpointer user_data,
                                                         GError **error_out);
const char*         oauth_proxy_get_token               (OAuthProxy *proxy);

Description

A longer description goes here.

Details

OAuthProxy

typedef struct {
  RestProxy parent;
} OAuthProxy;

oauth_proxy_new ()

RestProxy*          oauth_proxy_new                     (const char *consumer_key,
                                                         const char *consumer_secret,
                                                         const gchar *url_format,
                                                         gboolean binding_required);

OAuthProxyAuthCallback ()

void                (*OAuthProxyAuthCallback)           (OAuthProxy *proxy,
                                                         GError *error,
                                                         GObject *weak_object,
                                                         gpointer userdata);

oauth_proxy_auth_step ()

void                oauth_proxy_auth_step               (OAuthProxy *proxy,
                                                         const char *fragment);

oauth_proxy_auth_step_async ()

gboolean            oauth_proxy_auth_step_async         (OAuthProxy *proxy,
                                                         const char *fragment,
                                                         OAuthProxyAuthCallback callback,
                                                         GObject *weak_object,
                                                         gpointer user_data,
                                                         GError **error_out);

oauth_proxy_get_token ()

const char*         oauth_proxy_get_token               (OAuthProxy *proxy);

Get the current request or access token.

proxy :

Returns :

the token, or NULL if there is no token yet. This string is owned by OAuthProxy and should not be freed.