All URIs are relative to https://api.merge.dev/api/hris/v1
Method | HTTP request | Description |
---|---|---|
GenerateKeyCreate | POST /generate-key |
RemoteKey GenerateKeyCreate (GenerateRemoteKeyRequest generateRemoteKeyRequest)
Create a remote key.
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);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
generateRemoteKeyRequest | GenerateRemoteKeyRequest |
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]