All URIs are relative to https://rest.clicksend.com/v3
| Method | HTTP request | Description |
|---|---|---|
| SubaccountsBySubaccountIdDelete | DELETE /subaccounts/{subaccount_id} | Delete a subaccount |
| SubaccountsBySubaccountIdGet | GET /subaccounts/{subaccount_id} | Get specific subaccount |
| SubaccountsBySubaccountIdPut | PUT /subaccounts/{subaccount_id} | Update subaccount |
| SubaccountsGet | GET /subaccounts | Get all subaccounts |
| SubaccountsPost | POST /subaccounts | Create new subaccount |
| SubaccountsRegenApiKeyBySubaccountIdPut | PUT /subaccounts/{subaccount_id}/regen-api-key | Regenerate an API Key |
string SubaccountsBySubaccountIdDelete (int? subaccountId)
Delete a subaccount
Delete a subaccount
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class SubaccountsBySubaccountIdDeleteExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new SubaccountApi();
var subaccountId = 56; // int? | ID of subaccount to delete
try
{
// Delete a subaccount
string result = apiInstance.SubaccountsBySubaccountIdDelete(subaccountId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SubaccountApi.SubaccountsBySubaccountIdDelete: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| subaccountId | int? | ID of subaccount to delete |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string SubaccountsBySubaccountIdGet (int? subaccountId)
Get specific subaccount
Get specific subaccount
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class SubaccountsBySubaccountIdGetExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new SubaccountApi();
var subaccountId = 56; // int? | ID of subaccount to get
try
{
// Get specific subaccount
string result = apiInstance.SubaccountsBySubaccountIdGet(subaccountId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SubaccountApi.SubaccountsBySubaccountIdGet: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| subaccountId | int? | ID of subaccount to get |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string SubaccountsBySubaccountIdPut (Subaccount body, int? subaccountId)
Update subaccount
Update subaccount
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class SubaccountsBySubaccountIdPutExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new SubaccountApi();
var body = new Subaccount(); // Subaccount | Subaccount model
var subaccountId = 56; // int? | ID of subaccount to update
try
{
// Update subaccount
string result = apiInstance.SubaccountsBySubaccountIdPut(body, subaccountId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SubaccountApi.SubaccountsBySubaccountIdPut: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | Subaccount | Subaccount model | |
| subaccountId | int? | ID of subaccount to update |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string SubaccountsGet (int? page = null, int? limit = null)
Get all subaccounts
Get all subaccounts
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class SubaccountsGetExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new SubaccountApi();
var page = 56; // int? | Page number (optional) (default to 1)
var limit = 56; // int? | Number of records per page (optional) (default to 10)
try
{
// Get all subaccounts
string result = apiInstance.SubaccountsGet(page, limit);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SubaccountApi.SubaccountsGet: " + e.Message );
}
}
}
}| 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 SubaccountsPost (Subaccount body)
Create new subaccount
Create new subaccount
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class SubaccountsPostExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new SubaccountApi();
var body = new Subaccount(); // Subaccount | Subaccount model
try
{
// Create new subaccount
string result = apiInstance.SubaccountsPost(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SubaccountApi.SubaccountsPost: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | Subaccount | Subaccount model |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string SubaccountsRegenApiKeyBySubaccountIdPut (int? subaccountId)
Regenerate an API Key
Regenerate an API Key
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class SubaccountsRegenApiKeyBySubaccountIdPutExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new SubaccountApi();
var subaccountId = 56; // int? | ID of subaccount to regenerate API key for
try
{
// Regenerate an API Key
string result = apiInstance.SubaccountsRegenApiKeyBySubaccountIdPut(subaccountId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SubaccountApi.SubaccountsRegenApiKeyBySubaccountIdPut: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| subaccountId | int? | ID of subaccount to regenerate API key for |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]