This is an unoffical Click A Tell platform API for .NET
https://www.nuget.org/packages/ClickATellAPI/
In Visual Studio goto View -> Other Windows -> Package manager and type
Install-Package ClickATellAPI
or
- Goto Project -> Manage NuGet packages
- Click Browse
- Search ClickATellAPI
- On the right hand side click install
Add Namespaces
using ClickATel;
using ClickATel.Models;
using ClickATel.Models.Results;
Configure API Key
Authenticate.ApiKey = "8Jr1Jr9oQFGCV4wDfaEnA==";
Authenticate.Test_Login(true);//Test API Key
Setup country code and sending phone number
Settings.CountryCode = 1; //Country code prefix
Settings.DefaultFromNumber = "7195552020";//ONLY FOR TWO WAY INTEGRATIONS
Get Account Balance
decimal balance = Account.GetBalance(out string currency);
Send message to a single recipient
SendMessageStatus SendStatus = MessagesActions.SendMessage("Hello World!","7195553652");
Send message to multiple recipients
SendMessagesStatus SendStatus = MessagesActions.SendMessage("Hello World!", "7195552026" , "7195553652");
Send message at a specific time
SendMessageStatus SendStatus1 = MessagesActions.SendMessage("Hello World!", DateTime.UtcNow.AddHours(1) ,"7195553652");
Get message status from gateway
string Msg_Status = GetMessageStatus(SendStatus1);
Click-A-Tel Error Discriptions
You can find the error message under the SendMessageStatus
class's error property
Example
Console.WriteLine(SendStatus.error);
- Login to your click a tell account
- Copy your sms API key