All URIs are relative to https://rest.clicksend.com/v3
Method | HTTP request | Description |
---|---|---|
ListCountriesGet | GET /country-list | List of countries |
UserCountriesAgreePost | POST /user-countries/agree | Agree to rules and regulation |
UserCountriesGet | GET /user-countries | Get Countries for Global Sending |
UserCountriesPost | POST /user-countries | Select Countries for Global Sending |
string ListCountriesGet ()
List of countries
List of countries with IDs that can be used in selecting countries for Global sending.
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class ListCountriesGetExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new GlobalSendingApi();
try
{
// List of countries
string result = apiInstance.ListCountriesGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling GlobalSendingApi.ListCountriesGet: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string UserCountriesAgreePost ()
Agree to rules and regulation
To agree on rules and regulations of selected countries and confirm selection.
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class UserCountriesAgreePostExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new GlobalSendingApi();
try
{
// Agree to rules and regulation
string result = apiInstance.UserCountriesAgreePost();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling GlobalSendingApi.UserCountriesAgreePost: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string UserCountriesGet ()
Get Countries for Global Sending
Get the list of selected countries.
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class UserCountriesGetExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new GlobalSendingApi();
try
{
// Get Countries for Global Sending
string result = apiInstance.UserCountriesGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling GlobalSendingApi.UserCountriesGet: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string UserCountriesPost (CountryListIds body)
Select Countries for Global Sending
Use this endpoint to select countries that you intend to send sms / mms to. To remove / unselect a country, just remove the country id from the array in the payload.
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class UserCountriesPostExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new GlobalSendingApi();
var body = new CountryListIds(); // CountryListIds | Id of countr(ies) you want to select, you can get them from GET /country-list response
try
{
// Select Countries for Global Sending
string result = apiInstance.UserCountriesPost(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling GlobalSendingApi.UserCountriesPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | CountryListIds | Id of countr(ies) you want to select, you can get them from GET /country-list response |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]