SMSAPI.pl
2.2.0
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Core 3.1
This package targets .NET Core 3.1. The package is compatible with this framework or higher.
dotnet add package SMSAPI.pl --version 2.2.0
NuGet\Install-Package SMSAPI.pl -Version 2.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SMSAPI.pl" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SMSAPI.pl --version 2.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SMSAPI.pl, 2.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SMSAPI.pl as a Cake Addin #addin nuget:?package=SMSAPI.pl&version=2.2.0 // Install SMSAPI.pl as a Cake Tool #tool nuget:?package=SMSAPI.pl&version=2.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
csharp-client
SMSAPI C# client may be used by SMSAPI clients.
How to pick a service?
SMSAPI.IO (default)
var smsApi = new SMSApi.Api.SMSFactory(client);
//or
var smsApi = new SMSApi.Api.SMSFactory(client, ProxyAddress.SmsApiIo);
SMSAPI.PL
var smsApi = new SMSApi.Api.SMSFactory(client, ProxyAddress.SmsApiPl);
SMSAPI.COM
var smsApi = new SMSApi.Api.SMSFactory(client, ProxyAddress.SmsApiCom);
Example
try
{
SMSApi.Api.IClient client = new SMSApi.Api.ClientOAuth("token");
var smsApi = new SMSApi.Api.SMSFactory(client);
// for SMSAPI.com clients:
// var smsApi = new SMSApi.Api.SMSFactory(client, ProxyAddress.SmsApiCom);
var result =
smsApi.ActionSend()
.SetText("test message")
.SetTo("0000000000")
.SetSender("Test") //Sender name
.Execute();
System.Console.WriteLine("Send: " + result.Count);
string[] ids = new string[result.Count];
for (int i = 0, l = 0; i < result.List.Count; i++)
{
if (!result.List[i].isError())
{
if (!result.List[i].isFinal())
{
ids[l] = result.List[i].ID;
l++;
}
}
}
System.Console.WriteLine("Get:");
result =
smsApi.ActionGet()
.Ids(ids)
.Execute();
foreach (var status in result.List)
{
System.Console.WriteLine("ID: " + status.ID + " Number: " + status.Number + " Points:" + status.Points + " Status:" + status.Status + " IDx: " + status.IDx);
}
}
catch (SMSApi.Api.ActionException e)
{
/**
* Action error
*/
System.Console.WriteLine(e.Message);
}
catch (SMSApi.Api.ClientException e)
{
/**
* Error codes (list available in smsapi docs). Example:
* 101 Invalid authorization info
* 102 Invalid username or password
* 103 Insufficient credits on Your account
* 104 No such template
* 105 Wrong IP address (for IP filter turned on)
* 110 Action not allowed for your account
*/
System.Console.WriteLine(e.Message);
}
catch (SMSApi.Api.HostException e)
{
/*
* Server errors
* SMSApi.Api.HostException.E_JSON_DECODE - problem with parsing data
*/
System.Console.WriteLine(e.Message);
}
catch (SMSApi.Api.ProxyException e)
{
// communication problem between client and sever
System.Console.WriteLine(e.Message);
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.2.0 | 45,615 | 5/16/2023 |
2.1.0 | 12,477 | 4/12/2023 |
2.0.1 | 12,266 | 1/20/2023 |
1.0.9 | 105,969 | 5/13/2020 |
1.0.8 | 1,882 | 3/31/2020 |
1.0.7 | 12,762 | 2/10/2020 |
1.0.6 | 1,185 | 2/3/2020 |
1.0.5 | 1,268 | 2/3/2020 |
1.0.4 | 1,997 | 1/17/2020 |
1.0.3 | 29,007 | 1/5/2016 |
1.0.2 | 2,093 | 11/27/2015 |
1.0.1 | 3,039 | 11/24/2015 |
1.0.0 | 2,103 | 10/6/2015 |
SMSAPI Client that allows to send SMS, MMS, VMS and manage your SMSAPI account.