All URIs are relative to https://api.wall.et
| Method | HTTP request | Description |
|---|---|---|
| Login | POST /authentication/login | Login |
| LoginStatus | GET /authentication/status/{token} | Retrieve session token status |
| Logout | DELETE /authentication/logout | Logout |
| Register | POST /authentication/register | Register |
WTAuthenticationLoginResponse Login (WTAuthenticationLoginRequest wTAuthenticationLoginRequest)
Login
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class LoginExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.wall.et";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new AuthenticationApi(httpClient, config, httpClientHandler);
var wTAuthenticationLoginRequest = new WTAuthenticationLoginRequest(); // WTAuthenticationLoginRequest |
try
{
// Login
WTAuthenticationLoginResponse result = apiInstance.Login(wTAuthenticationLoginRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.Login: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Login
ApiResponse<WTAuthenticationLoginResponse> response = apiInstance.LoginWithHttpInfo(wTAuthenticationLoginRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.LoginWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| wTAuthenticationLoginRequest | WTAuthenticationLoginRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LoginStatus200Response LoginStatus (string token)
Retrieve session token status
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class LoginStatusExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.wall.et";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new AuthenticationApi(httpClient, config, httpClientHandler);
var token = "token_example"; // string |
try
{
// Retrieve session token status
LoginStatus200Response result = apiInstance.LoginStatus(token);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.LoginStatus: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Retrieve session token status
ApiResponse<LoginStatus200Response> response = apiInstance.LoginStatusWithHttpInfo(token);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.LoginStatusWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| token | string |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string Logout ()
Logout
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class LogoutExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.wall.et";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new AuthenticationApi(httpClient, config, httpClientHandler);
try
{
// Logout
string result = apiInstance.Logout();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.Logout: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Logout
ApiResponse<string> response = apiInstance.LogoutWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.LogoutWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}This endpoint does not need any parameter.
string
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Employee Register (WTAuthenticationRegister wTAuthenticationRegister)
Register
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class RegisterExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.wall.et";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new AuthenticationApi(httpClient, config, httpClientHandler);
var wTAuthenticationRegister = new WTAuthenticationRegister(); // WTAuthenticationRegister |
try
{
// Register
Employee result = apiInstance.Register(wTAuthenticationRegister);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.Register: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Register
ApiResponse<Employee> response = apiInstance.RegisterWithHttpInfo(wTAuthenticationRegister);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuthenticationApi.RegisterWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| wTAuthenticationRegister | WTAuthenticationRegister |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]