All URIs are relative to https://localhost:7008/tmapi/v1
Method | HTTP request | Description |
---|---|---|
ChangePassword | POST /change-password | Change password |
GetServerInfo | GET /server | Server information |
void ChangePassword (ChangePasswordRequest changePasswordRequest)
Change password
Use this request to change the password.
using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;
namespace Example
{
public class ChangePasswordExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new ServerApi();
var changePasswordRequest = new ChangePasswordRequest(); // ChangePasswordRequest | Change password request
try
{
// Change password
apiInstance.ChangePassword(changePasswordRequest);
}
catch (Exception e)
{
Debug.Print("Exception when calling ServerApi.ChangePassword: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
changePasswordRequest | ChangePasswordRequest | Change password request |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ServerInfo GetServerInfo ()
Server information
using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;
namespace Example
{
public class GetServerInfoExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new ServerApi();
try
{
// Server information
ServerInfo result = apiInstance.GetServerInfo();
Debug.WriteLine(result.ToJson());
}
catch (Exception e)
{
Debug.Print("Exception when calling ServerApi.GetServerInfo: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]