Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.26 KB

File metadata and controls

53 lines (36 loc) · 1.26 KB

ClickSend\CountriesApi

All URIs are relative to https://rest.clicksend.com/v3

Method HTTP request Description
countriesGet GET /countries Get all country codes

countriesGet

string countriesGet()

Get all country codes

Get all countries

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new ClickSend\Api\CountriesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);

try {
    $result = $apiInstance->countriesGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CountriesApi->countriesGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]