Skip to content

Latest commit

 

History

History
84 lines (61 loc) · 2.49 KB

GenerateKeyApi.md

File metadata and controls

84 lines (61 loc) · 2.49 KB

Merge.HRISClient.Api.GenerateKeyApi

All URIs are relative to https://api.merge.dev/api/hris/v1

Method HTTP request Description
GenerateKeyCreate POST /generate-key

GenerateKeyCreate

RemoteKey GenerateKeyCreate (GenerateRemoteKeyRequest generateRemoteKeyRequest)

Create a remote key.

Example

using System.Collections.Generic;
using System.Diagnostics;
using Merge.HRISClient.Api;
using Merge.HRISClient.Client;
using Merge.HRISClient.Model;

namespace Example
{
    public class GenerateKeyCreateExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.merge.dev/api/hris/v1";
            // Configure API key authorization: tokenAuth
            config.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new GenerateKeyApi(config);
            var generateRemoteKeyRequest = new GenerateRemoteKeyRequest(); // GenerateRemoteKeyRequest | 

            try
            {
                RemoteKey result = apiInstance.GenerateKeyCreate(generateRemoteKeyRequest);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling GenerateKeyApi.GenerateKeyCreate: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
generateRemoteKeyRequest GenerateRemoteKeyRequest

Return type

RemoteKey

Authorization

tokenAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]