Marsol 0.1.11
dotnet add package Marsol --version 0.1.11
NuGet\Install-Package Marsol -Version 0.1.11
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="Marsol" Version="0.1.11" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Marsol --version 0.1.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Marsol, 0.1.11"
#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 Marsol as a Cake Addin #addin nuget:?package=Marsol&version=0.1.11 // Install Marsol as a Cake Tool #tool nuget:?package=Marsol&version=0.1.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Marsol CSharp SDK
This is the official C# client for Marsol Services, the client is opensource and maintained by Cipher IT.
How to use:
Install marsol package using Nuget package manager on visual studion, or install it using the package manager console Install-Package Marsol
Checking the service status:
Request:
using Marsol;
...
var marsolClient = new MarsolClient("Your_Token_Here");
var status = await marsolClient.GetServiceHealthAsync();
Response:
public class MarsolServiceHealthResponse
{
public string Status { get; set; } // "ok" if service up
}
Get Subscription Information:
using Marsol;
...
var marsolClient = new MarsolClient("Your_Token_Here");
var subscription = await marsolClient.GetSubscriptionInfoAsync();
Response:
public class MarsolSubscriptionInfoResponse
{
public string Id { get; set; }
public string Name { get; set; }
public int Balance { get; set; }
public int RemainingQuota { get; set; }
public int UsedQuota { get; set; }
public DateTime Timestamp { get; set; }
public DateTime Expiration { get; set; }
}
Send SMS:
using Marsol;
...
var marsolClient = new MarsolClient("Your_Token_Here");
var requestResponse = await marsolClient.SendSMSAsync("Message_Content_Here","0911111111","0922222222",...);
Response:
public class SendSmsResponse
{
public string RequestId { get; set; }
public List<string> Accepted { get; set; } = new List<string>(); // list of accepted phone numbers
public List<string> Rejected { get; set; } = new List<string>(); // list of rejected phone numbers
public List<DuplicatedPhoneNumber> Duplicates { get; set; } = new List<DuplicatedPhoneNumber>(); // list of duplicated phone numbers with count of duplications
}
SMS Request Status:
using Marsol;
...
var marsolClient = new MarsolClient("Your_Token_Here");
var requestInfo = await marsolClient.GetRequestInfoAsync("");
Response:
public class MarsolRequestInfoResponse
{
public string RequestId { get; set; }
public string Message { get; set; } // message content
public List<MarsolRecipientStatus> Recipients { get; set; } // List of recipients with status
public int Parts { get; set; } // number of SMS counts for each recipients
public DateTime Timestamp { get; set; } // timestamp when sending started
public string Token { get; set; }
}
API
if you prefere to use the rest api directly, you can check our service swagger of Marsol Swagger.
Product | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.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.
-
.NETStandard 2.0
- Flurl (>= 4.0.0)
- Flurl.Http (>= 4.0.2)
- sms.helpers (>= 2.1.0)
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 |
---|---|---|
0.1.11 | 97 | 10/22/2024 |
0.1.10 | 84 | 10/21/2024 |
0.1.9 | 359 | 1/22/2024 |
0.1.8 | 115 | 1/21/2024 |
0.1.7 | 112 | 1/21/2024 |
0.1.6 | 150 | 10/23/2023 |
0.1.5 | 139 | 10/11/2023 |
0.1.4 | 142 | 10/11/2023 |
0.1.3 | 148 | 10/10/2023 |
0.1.2 | 143 | 10/9/2023 |
0.1.1 | 147 | 10/9/2023 |
0.1.0 | 145 | 10/9/2023 |
0.0.2 | 173 | 7/30/2023 |
0.0.1 | 161 | 7/29/2023 |