Skip to content

Latest commit

 

History

History
73 lines (54 loc) · 2.13 KB

LogoutApi.md

File metadata and controls

73 lines (54 loc) · 2.13 KB

ai.thirdwatch.Api.LogoutApi

All URIs are relative to https://localhost/event

Method HTTP request Description
Logout POST /v1/logout Use logout to record when a user logs out.

Logout

EventResponse Logout (Logout JSON)

Use logout to record when a user logs out.

Example

using System;
using System.Diagnostics;
using ai.thirdwatch.Api;
using ai.thirdwatch.Client;
using ai.thirdwatch.Model;

namespace Example
{
    public class LogoutExample
    {
        public void main()
        {
            // Configure API key authorization: api_key
            Configuration.Default.AddApiKey("X-THIRDWATCH-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.AddApiKeyPrefix("X-THIRDWATCH-API-KEY", "Bearer");

            var apiInstance = new LogoutApi();
            var JSON = new Logout(); // Logout | Pass logout status to thirdwatch. Only `_userID` is required field. But this should contain logout info.

            try
            {
                // Use logout to record when a user logs out.
                EventResponse result = apiInstance.Logout(JSON);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LogoutApi.Logout: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
JSON Logout Pass logout status to thirdwatch. Only `_userID` is required field. But this should contain logout info.

Return type

EventResponse

Authorization

api_key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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