# exploring-africastalking-apis
## Sending SMS using Africa's Talking SMS API with Python
This is a sample Python script that demonstrates how to use the Africa's Talking SMS API to send SMS messages using Python. The script uses the africastalking Python SDK to interact with the SMS API.
### Prerequisites
Before you can run the script, you need to have the following:
An Africa's Talking account with SMS API access `Python 3.x` installed on your machine
The africastalking Python SDK installed (you can install it using pip)
### Getting Started
To get started, follow these steps:
Create a `.env` file in the root directory of the project and add your Africa's Talking API key and username in the following format:
```bash
AT_API_KEY=your_api_key
AT_USERNAME=your_username
```
Run the script using the following command:
```bash
python3 send_sms.py
```
### Sample Response
```bash
python3 send_sms.py
```
## USSD(Unstructured Supplementary Service Data) using Africa's Talking USSD API with Flask
This is a sample Python script that demonstrates how to use the Africa's Talking USSD API to send USSD messages using Flask. The script uses the africastalking Python SDK to interact with the USSD API.
### Prerequisites
Before you can run the script, you need to have the following:
An Africa's Talking account with USSD API access `Python 3.x` installed on your machine
The africastalking Python SDK installed (you can install it using pip)
### Getting Started
To get started, follow these steps:
Install the requirements using the following command:
```bash
pip install -r requirements.txt
```
Run the script using the following command:
```bash
python3 app.py
```
### Sample Response
```bash
python3 app.py
```