All URIs are relative to https://rest.clicksend.com/v3
Method | HTTP request | Description |
---|---|---|
resellerAccountsByClientUserIdGet | GET /reseller/accounts/{client_user_id} | Get Reseller clients Account |
resellerAccountsByClientUserIdPut | PUT /reseller/accounts/{client_user_id} | Update Reseller clients Account |
resellerAccountsGet | GET /reseller/accounts | Get list of reseller accounts |
resellerAccountsPost | POST /reseller/accounts | Create reseller account |
string resellerAccountsByClientUserIdGet($client_user_id)
Get Reseller clients Account
Get Reseller clients Account
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
$config = ClickSend\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new ClickSend\Api\ResellerAccountApi(
// 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(),
$config
);
$client_user_id = 56; // int | User ID of client
try {
$result = $apiInstance->resellerAccountsByClientUserIdGet($client_user_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResellerAccountApi->resellerAccountsByClientUserIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
client_user_id | int | User ID of client |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string resellerAccountsByClientUserIdPut($body, $client_user_id)
Update Reseller clients Account
Update Reseller clients Account
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
$config = ClickSend\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new ClickSend\Api\ResellerAccountApi(
// 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(),
$config
);
$body = new \ClickSend\Model\ResellerAccount(); // \ClickSend\Model\ResellerAccount | ResellerAccount model
$client_user_id = 56; // int | User ID of client
try {
$result = $apiInstance->resellerAccountsByClientUserIdPut($body, $client_user_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResellerAccountApi->resellerAccountsByClientUserIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \ClickSend\Model\ResellerAccount | ResellerAccount model | |
client_user_id | int | User ID of client |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string resellerAccountsGet($page, $limit)
Get list of reseller accounts
Get list of reseller accounts
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
$config = ClickSend\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new ClickSend\Api\ResellerAccountApi(
// 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(),
$config
);
$page = 1; // int | Page number
$limit = 10; // int | Number of records per page
try {
$result = $apiInstance->resellerAccountsGet($page, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResellerAccountApi->resellerAccountsGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
page | int | Page number | [optional] [default to 1] |
limit | int | Number of records per page | [optional] [default to 10] |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string resellerAccountsPost($body)
Create reseller account
Create reseller account
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
$config = ClickSend\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new ClickSend\Api\ResellerAccountApi(
// 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(),
$config
);
$body = new \ClickSend\Model\ResellerAccount(); // \ClickSend\Model\ResellerAccount | ResellerAccount model
try {
$result = $apiInstance->resellerAccountsPost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResellerAccountApi->resellerAccountsPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \ClickSend\Model\ResellerAccount | ResellerAccount model |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]