The MessageMedia Lookups API provides a number of endpoints for validating the phone numbers you're sending to by checking their validity, type and carrier records.
Project description
# MessageMedia Lookups Python SDK
[](https://travis-ci.org/messagemedia/lookups-python-sdk)
[](https://pypi.python.org/pypi/messagemedia-lookups-sdk)
The MessageMedia Lookups API provides a number of endpoints for validating the phone numbers you’re sending to by checking their validity, type and carrier records.
## ⭐️ Installing via pip
Run the following command to install the SDK via pip: `pip install messagemedia-lookups-sdk`
## 🎬 Get Started
It's easy to get started. Simply enter the API Key and secret you obtained from the [MessageMedia Developers Portal](https://developers.messagemedia.com) into the code snippet below and a mobile number you wish to send to.
### 👀 Lookup a number
```python
# Configuration parameters and credentials
from message_media_lookups.message_media_lookups_client import MessageMediaLookupsClient
import json
basic_auth_user_name = 'YOUR_API_KEY' # The username to use with basic authentication
basic_auth_password = 'YOUR_API_SECRET' # The password to use with basic authentication
client = MessageMediaLookupsClient(basic_auth_user_name, basic_auth_password)
lookups_controller = client.lookups
phone_number = 'YOUR_MOBILE_NUMBER'
options = 'carrier,type'
result = lookups_controller.get_lookup_a_phone_number(phone_number, options)
```
## 📕 Documentation
The Python SDK Documentation can be viewed [here](DOCUMENTATION.md)
## 😕 Need help?
Please contact developer support at developers@messagemedia.com or check out the developer portal at [developers.messagemedia.com](https://developers.messagemedia.com/)
[](https://travis-ci.org/messagemedia/lookups-python-sdk)
[](https://pypi.python.org/pypi/messagemedia-lookups-sdk)
The MessageMedia Lookups API provides a number of endpoints for validating the phone numbers you’re sending to by checking their validity, type and carrier records.
## ⭐️ Installing via pip
Run the following command to install the SDK via pip: `pip install messagemedia-lookups-sdk`
## 🎬 Get Started
It's easy to get started. Simply enter the API Key and secret you obtained from the [MessageMedia Developers Portal](https://developers.messagemedia.com) into the code snippet below and a mobile number you wish to send to.
### 👀 Lookup a number
```python
# Configuration parameters and credentials
from message_media_lookups.message_media_lookups_client import MessageMediaLookupsClient
import json
basic_auth_user_name = 'YOUR_API_KEY' # The username to use with basic authentication
basic_auth_password = 'YOUR_API_SECRET' # The password to use with basic authentication
client = MessageMediaLookupsClient(basic_auth_user_name, basic_auth_password)
lookups_controller = client.lookups
phone_number = 'YOUR_MOBILE_NUMBER'
options = 'carrier,type'
result = lookups_controller.get_lookup_a_phone_number(phone_number, options)
```
## 📕 Documentation
The Python SDK Documentation can be viewed [here](DOCUMENTATION.md)
## 😕 Need help?
Please contact developer support at developers@messagemedia.com or check out the developer portal at [developers.messagemedia.com](https://developers.messagemedia.com/)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for messagemedia_lookups_sdk-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | daf5aac409f86bd5d097f8ff2ae5bdce91c80283d71225569850b7ae8ee8db0b |
|
MD5 | b1b34676d45ca07953804343655be660 |
|
BLAKE2b-256 | 18d8b7683b0905bc60f17d8d6fc82ac410d2e4d7c2953150c4e1bdb8c810d78f |