set_access_token


Description:

public void set_access_token (string access_token, int expires_in_seconds)

This function is analogous to authenticate for "Basic" HTTP authentication, except it takes an OAuth 2.0 access token instead of a username and password.

If expires_in_seconds is greater than zero, soup_auth_is_authenticated will return false after the given number of seconds have elapsed.

Parameters:

this

an SoupAuthBearer

access_token

an OAuth 2.0 access token

expires_in_seconds

expiry for access_token, or 0 if unknown