All URIs are relative to https://openapi.flowaccount.com/v1
Method | HTTP request | Description |
---|---|---|
TokenPost | POST /token | Generate Access Token |
AuthenResponse TokenPost (string contentType, string grantType = null, string scope = null, string clientId = null, string clientSecret = null)
Generate Access Token
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class TokenPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new AuthenticationApi(Configuration.Default);
var contentType = contentType_example; // string | (default to "application/x-www-form-urlencoded")
var grantType = grantType_example; // string | (optional)
var scope = scope_example; // string | (optional)
var clientId = clientId_example; // string | (optional)
var clientSecret = clientSecret_example; // string | (optional)
try
{
// Generate Access Token
AuthenResponse result = apiInstance.TokenPost(contentType, grantType, scope, clientId, clientSecret);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.TokenPost: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
contentType | string | [default to "application/x-www-form-urlencoded"] | |
grantType | string | [optional] | |
scope | string | [optional] | |
clientId | string | [optional] | |
clientSecret | string | [optional] |
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 response | - |
401 | 401 response | - |
500 | 500 response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]