GapiAuth
Stores data used to authorize requests.
type oauth1_data = {
signature_method : GapiCore.SignatureMethod.t;
consumer_key : string;
consumer_secret : string;
token : string;
secret : string;
}
type oauth1_params = {
http_method : GapiCore.HttpMethod.t;
url : string;
post_fields_to_sign : (string * string) list;
}
type authentication =
| NoAuth
| ClientLogin of string
| OAuth1 of oauth1_data
| OAuth2 of oauth2_data
| OAuth2ServiceAccount of oauth2_service_account_data
val generate_authorization_header :
?oauth1_params:oauth1_params ->
authentication ->
string option