/// <summary> /// OAuth Token /// </summary> /// <remarks> /// See the guide on <a href="http://api.keypay.com.au/guides/OAuth2">OAuth2 authentication</a> for more details. /// </remarks> public void OauthToken(OauthTokenQueryModel request) { ApiRequest($"/oauth/token?request={request.Request}", Method.POST); }
/// <summary> /// OAuth Token /// </summary> /// <remarks> /// See the guide on <a href="http://api.keypay.com.au/guides/OAuth2">OAuth2 authentication</a> for more details. /// </remarks> public Task OauthTokenAsync(OauthTokenQueryModel request, CancellationToken cancellationToken = default) { return(ApiRequestAsync($"/oauth/token?request={request.Request}", Method.POST, cancellationToken)); }