DefaultApi
com.usemoon.MoonSDK.Api.DefaultApi
All URIs are relative to https://beta.usemoon.ai
Method
HTTP request
Description
GetMessage
GET /ping
GetMessage
PingResponse GetMessage ()
Example
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class GetMessageExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
var apiInstance = new DefaultApi(config);
try
{
PingResponse result = apiInstance.GetMessage();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.GetMessage: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}Using the GetMessageWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
This endpoint does not need any parameter.
Return type
PingResponse
Authorization
No authorization required
HTTP request headers
Content-Type: Not defined
Accept: application/json
HTTP response details
Status code
Description
Response headers
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]