using Prove.Proveapi;
using Prove.Proveapi.Models.Components;
var sdk = new ProveAPI();
V3TokenRequest req = new V3TokenRequest() {
ClientId = "customer_id",
ClientSecret = "secret",
GrantType = "client_credentials",
};
var res = await sdk.V3.V3TokenRequestAsync(req);
// handle response{
"access_token": "eyJ...",
"refresh_token": "eyJ...",
"refresh_expires_in": 3600,
"token_type": "Bearer",
"expires_in": 3600
}This endpoint allows you to request an OAuth token.
using Prove.Proveapi;
using Prove.Proveapi.Models.Components;
var sdk = new ProveAPI();
V3TokenRequest req = new V3TokenRequest() {
ClientId = "customer_id",
ClientSecret = "secret",
GrantType = "client_credentials",
};
var res = await sdk.V3.V3TokenRequestAsync(req);
// handle response{
"access_token": "eyJ...",
"refresh_token": "eyJ...",
"refresh_expires_in": 3600,
"token_type": "Bearer",
"expires_in": 3600
}The client ID retrieved from the Developer Portal.
"customer_id"
The client secret retrieved from the Developer Portal.
"secret"
The grant type. This field only accepts client_credentials.
"client_credentials"
Successful request.
The access token used to authenticate API calls.
"eyJ..."
The lifetime of the token in seconds.
3600
The type of token.
"Bearer"
The lifetime of the refresh token in seconds. Not currently supported.
3600
The token used to refresh the expiration time. Not currently supported.
"eyJ..."
Was this page helpful?