OAuth2Proxy.with_token
Description:
[ CCode ( has_construct_function = false , type = "RestProxy*" ) ]
public OAuth2Proxy.with_token (string client_id, string access_token, string auth_endpoint, string url_format, bool binding_required)
public OAuth2Proxy.with_token (string client_id, string access_token, string auth_endpoint, string url_format, bool binding_required)
Create a new OAuth2Proxy for the specified endpoint url_format
, using
the specified client id
access_token
is used for the Access Token, so if they are still valid then this proxy is authorised.
Set binding_required
to true
if the URL contains string formatting operations (for example "http://foo.com/%s". These
must be expanded using bind before invoking the proxy.
Parameters:
client_id |
the client (application) id |
access_token |
the Access Token |
auth_endpoint |
the authentication endpoint URL |
url_format |
the endpoint URL |
binding_required |
whether the URL needs to be bound before calling |
Returns:
A new OAuth2Proxy. |