C# library for wavecell.com. Documentation: https://developer.wavecell.com/v1/api-documentation
Created by: Pavel Samoylenko (https://github.com/pavelakafoks) Created on: 2018-02-25
In this solution:
- Send SMS - Single: dll
- Send SMS - Many: dll
- Delivery Reports (via Callback URL): Asp.Net core v2 WebApi
- Test application: Console
"SubAccount" you can find in your cabinet in the section [Pricing] -> [Select sub-accounts] (Click to DropDown) Authentication mode: "ApiKey Bearer Token"
When I created this solution I saw a message in the cabinet:
About Callback URL If you want to setup your callback url, please contact operations.
and in Api documentation:
We strongly recommend to set default callback url for your account (send request to support team) and use this field only when you want to overwrite default webhook.
I tested both methods - via default url and via "DlrCallbackUrl" parameter. Works fine.
You can use my test server (I deployed web app from this solution) to test delivery notification: http://136.243.171.216:49979 Url for notifications: http://136.243.171.216:49979/api/notification
As option, for test delivery notifications you can use a very useful service: https://requestb.in .
I received delivery status:
<?xml version="1.0" encoding="utf-8"?>
<DeliveryReport version="3">
<UMID>10a1d1ac-312c-e811-8144-06ed3428fe67</UMID>
<DateTimeStamp>2018-03-20T11:27:49.5263081Z</DateTimeStamp>
<Status>DELIVERED TO DEVICE</Status>
<Reason />
<Source>test</Source>
<SubAccountId>test_5jJ97_hq</SubAccountId>
<Attempt>0</Attempt>
<ErrorCode>0</ErrorCode>
<Destination>79650000000</Destination>
<Price>0</Price>
<Currency>EUR</Currency>
<ClientMessageId>2222</ClientMessageId>
</DeliveryReport>ToDo list:
- Format html output in the notification receiver. Now we are showing just raw data
- Realize all Api opportunities
Known problems:
- If you see the error on build the "WavecellSmsDeliveryReports" project in Visual Studio: "...project.assets.json' not found. Run a NuGet package restore to generate this file. WavecellSmsDeliveryReports..." Solution: Run the command "dotnet restore" in the "Package Manager Console" and try again.