{"repo":"AfricasTalkingLtd/africastalking-python","free":true,"listed":false,"github":"https://github.com/AfricasTalkingLtd/africastalking-python","clone":"git clone https://github.com/AfricasTalkingLtd/africastalking-python.git","description":"Official Python SDK","language":"Python","stars":158,"topics":["sms-api","ussd","voice","callback-url","payments","mpesa-api","mpesa","shortcode","sms-gateway","sms"],"license":"MIT","category":"chat-messaging","readme_excerpt":"africastalking-python The SDK provides convenient access to the Africa's Talking APIs to python apps. Documentation Take a look at the API docs here. Install Usage The package needs to be configured with your app username and API key, which you can get from the dashboard. Note that all functions accept an optional timeout argument, but have a set default. You can use this SDK for either production or sandbox apps. For sandbox, the app username is ALWAYS sandbox See example for more usage examples. Initialization Initialize the SDK by calling africastalking.initialize(username, api key) . After initialization, you can get instances of offered services as follows: - SMS: africastalking.SMS - Airtime: africastalking.Airtime - Voice: africastalking.Voice - Token: africastalking.Token - Application: africastalking.Application - Mobile Data: africastalking.MobileData - Insights: africastalking.Insights - Whatsapp: africastalking.Whatsapp Application - fetch application data() : Get app information. e.g balance. Airtime - send(recipients: [dict]) : Send airtime - recipients : Contains an array of arrays containing the following keys - phone number : Recipient of airtime - amount : Amount to send with currency e.g 100 - currency code : 3-digit ISO format currency code (e.g KES , USD , UGX etc). - max num retry : This allows you to specify the maximum number of retries in case of failed airtime deliveries due to various reasons such as telco unavailability. The default retry period is","default_branch":null,"files":null,"tree":[],"storefront":"/r/AfricasTalkingLtd","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AfricasTalkingLtd/africastalking-python/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}