The first thing you will need to do is go to Africa’s Talking platform using this URL:https://africastalking.com/
Africa's Talking - Communication & Payments APIs for Africa
A unified API platform for software developers in Africa building SMS, USSD, Voice, Payments and Airtime applications
Once you get to the homepage look out for the Login button:
Clicking on the login button leads you to….., yes the login page.
In our case, we will we register a new account, after filling in your details submit and make sure to verify your email.
Am sure you will come up with a better Team Name.
How’s it going so far? quite simple right?
Once you click on Create App you need to fill in a name for the app and the username associated to it. Make sure to put the correct region you are in.
The work starts now:
To get started click on Docs
I would recommend going through all the tutorials but for now, let look at sending an SMS
Follow the steps show below:
- Click on SMS
- Click on Sending
- Click on Code Samples
You can then pick a language of preference in this case we are going to use PHP
You will need to change the $username,$apikey, Type in the recipient/s and by default $from=”AFRICASTKNG”
So how do you get your API?
- You got to Settings under Dashboard
- Click on API Key
- A window opens for you to enter your password, enter and click on generate. Once the API is generated keep it safe.
- You can then enter it in the code above and run it after customizing it to best suit you.
And you know what the best part of using Africa’s Talking your account has already been credited and once hit run your “recipient” receives the text.