Skip to content

Latest commit

 

History

History
92 lines (69 loc) · 2.8 KB

AuthenticationApi.md

File metadata and controls

92 lines (69 loc) · 2.8 KB

Flowaccount.OpenAPITools.Api.AuthenticationApi

All URIs are relative to https://openapi.flowaccount.com/v1

Method HTTP request Description
TokenPost POST /token Generate Access Token

TokenPost

AuthenResponse TokenPost (string contentType, string grantType = null, string scope = null, string clientId = null, string clientSecret = null)

Generate Access Token

Example

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);
            }
        }
    }
}

Parameters

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]

Return type

AuthenResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

HTTP response details

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]