All URIs are relative to https://api.egoiapp.com
Method | HTTP request | Description |
---|---|---|
GetAllCountries | GET /utilities/countries | Get all countries |
CountryCollection GetAllCountries (string phone = null)
Get all countries
Returns all countries
using System.Collections.Generic;
using System.Diagnostics;
using org.egoi.client.api.Api;
using org.egoi.client.api.Client;
using org.egoi.client.api.Model;
namespace Example
{
public class GetAllCountriesExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://api.egoiapp.com";
// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Apikey", "Bearer");
var apiInstance = new UtilitiesApi(Configuration.Default);
var phone = phone_example; // string | Phone number without country code to get all countries which can use that phone number (optional)
try
{
// Get all countries
CountryCollection result = apiInstance.GetAllCountries(phone);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling UtilitiesApi.GetAllCountries: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
phone | string | Phone number without country code to get all countries which can use that phone number | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
403 | Forbidden | - |
408 | Request Timeout | - |
422 | Unprocessable Entity | - |
429 | Too Many Requests | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]