All URIs are relative to https://rest.clicksend.com/v3
Method | HTTP request | Description |
---|---|---|
ListsByListIdDelete | DELETE /lists/{list_id} | ListsByListIdDelete |
ListsByListIdGet | GET /lists/{list_id} | Get specific contact list |
ListsByListIdPut | PUT /lists/{list_id} | Update specific contact list |
ListsGet | GET /lists | Get all contact lists |
ListsImportByListIdPost | POST /lists/{list_id}/import | Import contacts to list |
ListsPost | POST /lists | Create new contact list |
ListsRemoveDuplicatesByListIdPut | PUT /lists/{list_id}/remove-duplicates | Remove duplicate contacts |
string ListsByListIdDelete (int? listId)
ListsByListIdDelete
Delete a specific contact list
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class ListsByListIdDeleteExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new ContactListApi();
var listId = 56; // int? | List ID
try
{
// ListsByListIdDelete
string result = apiInstance.ListsByListIdDelete(listId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ContactListApi.ListsByListIdDelete: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
listId | int? | List ID |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string ListsByListIdGet (int? listId)
Get specific contact list
Get specific contact list
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class ListsByListIdGetExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new ContactListApi();
var listId = 56; // int? | List ID
try
{
// Get specific contact list
string result = apiInstance.ListsByListIdGet(listId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ContactListApi.ListsByListIdGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
listId | int? | List ID |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string ListsByListIdPut (ContactList body, int? listId)
Update specific contact list
Update specific contact list
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class ListsByListIdPutExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new ContactListApi();
var body = new ContactList(); // ContactList | Contact list model
var listId = 56; // int? | Your list id
try
{
// Update specific contact list
string result = apiInstance.ListsByListIdPut(body, listId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ContactListApi.ListsByListIdPut: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | ContactList | Contact list model | |
listId | int? | Your list id |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string ListsGet (int? page = null, int? limit = null)
Get all contact lists
Get all contact lists
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class ListsGetExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new ContactListApi();
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 contact lists
string result = apiInstance.ListsGet(page, limit);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ContactListApi.ListsGet: " + 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 ListsImportByListIdPost (ContactListImport body, int? listId)
Import contacts to list
Import contacts to list
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class ListsImportByListIdPostExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new ContactListApi();
var body = new ContactListImport(); // ContactListImport | ContactListImport model
var listId = 56; // int? | Your contact list id you want to access.
try
{
// Import contacts to list
string result = apiInstance.ListsImportByListIdPost(body, listId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ContactListApi.ListsImportByListIdPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | ContactListImport | ContactListImport model | |
listId | int? | Your contact list id you want to access. |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string ListsPost (ContactList body)
Create new contact list
Create new contact list
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class ListsPostExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new ContactListApi();
var body = new ContactList(); // ContactList | Contact list model
try
{
// Create new contact list
string result = apiInstance.ListsPost(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ContactListApi.ListsPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | ContactList | Contact list model |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string ListsRemoveDuplicatesByListIdPut (Fields body, int? listId)
Remove duplicate contacts
Remove duplicate contacts
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class ListsRemoveDuplicatesByListIdPutExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new ContactListApi();
var body = new Fields(); // Fields | Fields model
var listId = 56; // int? | Your list id
try
{
// Remove duplicate contacts
string result = apiInstance.ListsRemoveDuplicatesByListIdPut(body, listId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ContactListApi.ListsRemoveDuplicatesByListIdPut: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | Fields | Fields model | |
listId | int? | Your list id |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]