All URIs are relative to https://rest.clicksend.com/v3
Method | HTTP request | Description |
---|---|---|
PostPostcardsHistoryExportGet | GET /post/postcards/history/export | Export postcard history to a CSV file |
PostPostcardsHistoryGet | GET /post/postcards/history | Retrieve the history of postcards sent or scheduled |
PostPostcardsPricePost | POST /post/postcards/price | Calculate price for sending one or more postcards |
PostPostcardsSendPost | POST /post/postcards/send | Send one or more postcards |
string PostPostcardsHistoryExportGet (string filename)
Export postcard history to a CSV file
Export postcard history to a CSV file
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class PostPostcardsHistoryExportGetExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new PostPostcardApi();
var filename = filename_example; // string | Filename to export to
try
{
// Export postcard history to a CSV file
string result = apiInstance.PostPostcardsHistoryExportGet(filename);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PostPostcardApi.PostPostcardsHistoryExportGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
filename | string | Filename to export to |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string PostPostcardsHistoryGet (int? page = null, int? limit = null)
Retrieve the history of postcards sent or scheduled
Retrieve the history of postcards sent or scheduled
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class PostPostcardsHistoryGetExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new PostPostcardApi();
var page = 56; // int? | Page number (optional) (default to 1)
var limit = 56; // int? | Number of records per page (optional) (default to 10)
try
{
// Retrieve the history of postcards sent or scheduled
string result = apiInstance.PostPostcardsHistoryGet(page, limit);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PostPostcardApi.PostPostcardsHistoryGet: " + 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 PostPostcardsPricePost (PostPostcard body)
Calculate price for sending one or more postcards
Calculate price for sending one or more postcards
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class PostPostcardsPricePostExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new PostPostcardApi();
var body = new PostPostcard(); // PostPostcard | PostPostcard model
try
{
// Calculate price for sending one or more postcards
string result = apiInstance.PostPostcardsPricePost(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PostPostcardApi.PostPostcardsPricePost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | PostPostcard | PostPostcard model |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string PostPostcardsSendPost (PostPostcard body)
Send one or more postcards
Send one or more postcards
using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;
namespace Example
{
public class PostPostcardsSendPostExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new PostPostcardApi();
var body = new PostPostcard(); // PostPostcard | PostPostcard model
try
{
// Send one or more postcards
string result = apiInstance.PostPostcardsSendPost(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PostPostcardApi.PostPostcardsSendPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | PostPostcard | PostPostcard model |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]