Logo Lanfrica

AfricasTalkingLtd/africastalkingVB

Domain:

digital infrastructure

Record type:

software
Creator:
Afr
Host:
VB.NET API wrapper for Africa's Talking APIs # Official Africa's Talking VB.NET API wrapper The Africa's Talking VB.NET API wrapper provides convenient access to the Africa's Talking API from applications written in VB.NET. With support for .NET Standard 2.0 + . ## Documentation Take a look at the API docs here for more information. ## Installation Options 1. #### Using Visual Studio IDE #### Search for the latest version of `AfricasTalking.NET.VB` from the Nuget package manager window 2. #### Using .NET CLI + From the _command prompt/powershell window_ opened in your project directory, key in the following and press *Enter*. ```powershell dotnet add package AfricasTalking.NET.VB --version 2.2.1 ``` > Ensure you have the latest version of the package. Visit Nuget for more info on the latest release of this package. 3. #### Using Nuget Package Manger Console + On your Nuget package manager console,key in the following and press *Enter* ```powershell Install-Package AfricasTalking.NET.VB -Version 2.2.1 ``` > Ensure you have the latest version of the package. Visit Nuget for more info on the latest release of this package ## Usage + To use this package ensure you add the following `Imports` statement to your project file: ```vb Imports AfricasTalkingGateway ``` The package needs to be configured with your Africa's Talking username and API key (which you can get from the dashboard). ```vb ' Substitute the values with your credentials Dim username As String = "sandbox" Dim apikey As String = "apikey" ReadOnly _gateway As New AfricasTalkingGateway(username,apikey) ``` > Always ensure to register a callback URL with our services from the dashboard for you to receive various notifications posted by our API. > Ensure that your callback url responds with an `OK` or `200` status on message receipt. ### SMS #### Sending Bulk SMS - `SendMessage(to,message,sender,bulkSmsMode,options)` : The following arguments are supplied to facilitate sending of messages via our APIs - `to` : The recipient(s) exp …