docs.africastalking.com
docs.africastalking.com - Subscriptions - Callbacks
http://docs.africastalking.com/subscriptions/callback
Bulk SMS Opt out. Subscribe a phone number. Number of Queued calls. If you have subscription products on your premium SMS short codes, you will need to configure a callback URL that we will invoke to notify you when users subscribe or unsubscribe from your products (currently supported on Safaricom). To set up a callback url, click here. Every time a user subscribes or unsubscribes from a product, we will forward you the following information as POST variables:. Phone number to unsubscribe.
docs.africastalking.com
docs.africastalking.com - Voice
http://docs.africastalking.com/voice/conference
Bulk SMS Opt out. Subscribe a phone number. Number of Queued calls. Have you registered a callback URL to receive requests for your virtual number? This element lets you add all the users that dial into the phone number to a conference call. This is a terminal action. ie. No action will be executed after this. Here is a sample response:. Assuming that you have configured the callback URL for your Africa's Talking Phone Number to point to conferenceCall.php. Xml version=1.0 encoding=UTF-8?
docs.africastalking.com
docs.africastalking.com - Voice
http://docs.africastalking.com/voice/getdigits
Bulk SMS Opt out. Subscribe a phone number. Number of Queued calls. Have you registered a callback URL to receive requests for your virtual number? You can use this element to get the digits that a user enters on their phone in response to a prompt from your application. For example, you can ask the user to enter their account number, followed by the hash sign, and then read back their balance to them. Here is a sample response, with a Say prompt:. The GetDigits element can take these attributes:. Timeou...
docs.africastalking.com
docs.africastalking.com - Voice
http://docs.africastalking.com/voice/reject
Bulk SMS Opt out. Subscribe a phone number. Number of Queued calls. Have you registered a callback URL to receive requests for your virtual number? This element lets you reject an incoming call without incurring any usage charges from our APIs. Note that this should be the only element in your response. This is a terminal action. ie. No action will be executed after this. Here is a sample response:. Below is an example of how you can reject black-listed phone numbers that dial into your phone number.
docs.africastalking.com
docs.africastalking.com - Voice
http://docs.africastalking.com/voice/play
Bulk SMS Opt out. Subscribe a phone number. Number of Queued calls. Have you registered a callback URL to receive requests for your virtual number? This element lets you play back an audio file that is located anywhere on the web. Here is a sample response:. Say feature in the response below is optional and you may just call play). Response Say Please listen to our awesome record /Say Play url=http:/ www.myvoicemailserver.com/audio/vmail.wav/ /Response. The Play element can take these attributes:.
docs.africastalking.com
docs.africastalking.com - Voice
http://docs.africastalking.com/voice/redirect
Bulk SMS Opt out. Subscribe a phone number. Number of Queued calls. Have you registered a callback URL to receive requests for your virtual number? This action will transfer control of the call to the script whose URL is passsed in. This can help you better organize your call handling logic by spreading the logic across multiple scripts. Any action after Redirect won't execute. Since the API will be handling events from the script redirected to.
docs.africastalking.com
docs.africastalking.com - Subscriber opt out
http://docs.africastalking.com/sms/optout
Bulk SMS Opt out. Subscribe a phone number. Number of Queued calls. This section only affects Bulk Messaging using alphanumeric sender ids. The mobile subscriber may decide to opt out from receiving bulk messages from your alphanumeric sender id. The instructions on how to opt out are automatically appended to the first message. You send to the mobile subscriber. From then onwards, any other message will be sent 'as is' to the subscriber. To register User Optout callback url, please click here.
docs.africastalking.com
docs.africastalking.com - DLR callbacks
http://docs.africastalking.com/sms/deliveryreports
Bulk SMS Opt out. Subscribe a phone number. Number of Queued calls. We have delivery reports available for all messages being sent to phone numbers in most African countries. We also display the delivery status in your bulk sms outbox. Or in your premium outbox. To receive delivery reports directly to your application, you can register a callback url in your Dashboard. We then update the delivery status information using POST requests made to that page. Here is how it works:. Values for that message.
docs.africastalking.com
docs.africastalking.com - Sending SMS
http://docs.africastalking.com/sms/sending
Bulk SMS Opt out. Subscribe a phone number. Number of Queued calls. To send a message you will need to make a HTTP POST. Request to the following url:. POST URL: http:/ api.africastalking.com/version1/messaging. API key generated from your account settings. This is the format you would like your data formatted. It may be application/xml or application/json. The default is application/xml. The gateway classes provided uses appliaction/json. This is your username. This is the message to b sent. This parame...
docs.africastalking.com
docs.africastalking.com - Receiving : Fetch messages
http://docs.africastalking.com/sms/fetchmessages
Bulk SMS Opt out. Subscribe a phone number. Number of Queued calls. Fetch messages from API. You need your AfricasTalking username and APIKey for any request to our API. If you don't have an APIKey, please click here. The PHP code snippet below shows how to fetch messages from our API. The code uses our PHP gateway class: AfricasTalkingGateway.php. Also, please ensure that you have the php curl module enabled. To enable it uncomment the line: ;extension=php curl.dll. In php.ini and restart apache. SMSMes...