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. |
EventResponse Logout (Logout JSON)
Use logout to record when a user logs out.
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 );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
JSON | Logout | Pass logout status to thirdwatch. Only `_userID` is required field. But this should contain logout info. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]