DCS.HostedSms.NetClient 1.0.0

dotnet add package DCS.HostedSms.NetClient --version 1.0.0
NuGet\Install-Package DCS.HostedSms.NetClient -Version 1.0.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="DCS.HostedSms.NetClient" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DCS.HostedSms.NetClient --version 1.0.0
#r "nuget: DCS.HostedSms.NetClient, 1.0.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 DCS.HostedSms.NetClient as a Cake Addin
#addin nuget:?package=DCS.HostedSms.NetClient&version=1.0.0

// Install DCS.HostedSms.NetClient as a Cake Tool
#tool nuget:?package=DCS.HostedSms.NetClient&version=1.0.0


.NET API Client HostedSMS.pl SimpleAPI and FullAPI

HostedSMS.pl API documentation


.Net Standard 2.0: .Net Core >= 2.0 .Net Framework >= 4.6.1


Send SMS
using DCS.HostedSms.NetClient.SimpleApi;

string userEmail = "your_hostedsms_user_email@test.com";
string password = "your_hostedsms_user_password";

SimpleApiClient simpleClient = new SimpleApiClient(userEmail, password);

string sender = "your_sender_name";
string phone = "48123456789";
string message = "your message";

Guid response = simpleClient.SendSms(sender, phone, message);


Create client
using DCS.HostedSms.NetClient.FullApi;

string userEmail = "your_hostedsms_user_email@test.com";
string password = "your_hostedsms_user_password";

FullApiClient fullClient = new FullApiClient(userEmail, password);
Send SMS
string phone = "48123456789";
string message = "your message";
string sender = "your_sender_name";
string transactionId = Guid.NewGuid().ToString();

SendSmsResponse response = fullClient.SendSms(phone, message, sender, transactionId);
Send multiple SMSes
string[] phones = new[] {"48111111111", "48222222222"};

SendSmsesResponse response = fullClient.SendSmses(phones, message, sender, transactionId);
Get all valid senders for user
GetValidSendersResponse response = fullClient.GetValidSenders();

string[] mySenders = response.Senders;
Get delivery reports
Guid[] messageIds = new Guid[] {new Guid("2eacb5a1-9bcf-4d43-8aae-15eb7707ab51"), new Guid("43a52ac5-94ad-3501-bf74-110c620c63a6") };

GetDeliveryReportsResponse response = fullClient.GetDeliveryReports(messageIds);

DeliveryReport[] deliveryReports = response.DeliveryReports;
Get unread delivery reports
GetUnreadDeliveryReportsResponse response = fullClient.GetUnreadDeliveryReports();

DeliveryReport[] deliveryReports = response.DeliveryReports;
Get received smses
DateTime fromDate = DateTime.ParseExact("2024-01-01T16:00:00", "s", null);
DateTime toDate = DateTime.Now;
string recipient = "48123456789";

GetInputSmsesResponse response = fullClient.GetInputSmses(fromDate, toDate, recipient);

InputSms[] inputSmses = response.InputSmses;
Get unread received smses
GetUnreadInputSmsesResponse response = fullClient.GetUnreadInputSmses();

InputSms[] inputSmses = response.InputSmses;
Check if phone numbers are valid
string[] phones = new[] {"48111111111", "123", "48222222222"};

CheckPhonesResponse response = fullClient.CheckPhones(phones);
Convert text to GSM7
string message = "message to convert: �濳";

ConvertToGsm7Response response = fullClient.ConvertToGsm7(message);
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
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
1.0.0 99 3/27/2024