OAuth1Authorizer


Description:

[ CCode ( has_construct_function = false ) ]
public OAuth1Authorizer (string? application_name, Type service_type)

Creates a new OAuth1Authorizer.

The AuthorizationDomains for the given service_type (i.e. as returned by get_authorization_domains) are the ones the user will be requested to authorize access to on the page at the URI returned by request_authentication_uri.

The given application_name will set the value of application_name and will be displayed to the user on authentication pages returned by Google. If null is provided, the value of get_application_name will be used as a fallback.

Parameters:

application_name

a human-readable, translated application name to use on authentication pages, or null

service_type

the Type of a Service subclass which the OAuth1Authorizer will be used with

Returns:

a new OAuth1Authorizer; unref with unref