Simplified Python bindings for Quo Phone REST API.
Project description
quo_phone_api
Description
quo_phone_api is simple Python bindings for Quo Phone REST API. The purpose of this library is to create simplified, pythonic bindings for this API.
Keep in mind the methods accept all common number formats used in the US. (xxx) xxx-xxxx, xxx.xxx.xxxx, xxx-xxx-xxxx are all accepted.
Please keep in mind, this is not meant to be an exhaustive library but a functional library that gives us the core functions of the REST API provided to us by Quo, so that we can integrate phones with automated systems.
Contact
BaseGodFelix - felixmobile87@gmail.com
Dependencies
felog requests
Installation
pip install quo_phone_api
Usage
Setup a Phone
import quo_phone_api.core as Quo
quo = Quo.Phone(<Quo API Key>)
quo.connect()
Get Conversations
The way Quo API works allows you to list conversations between your phone and others. These conversations can be enumerated to see open conversations for CRM purposes.
The documentation for this method says that technically its possible to filter the results of this method but when I try to provide the necessary phoneNumbers field, it throws errors. Their API may be having some sort of issues, we will return to the filtering functionality.
Note: This method does not require you connect the phone but it is good practice.
Return
This method returns a list of dictionaries with the results. Error messages will be index 0 and have a dictionary key of 'error'.
Method Usage
import quo_phone_api.core as Quo
quo = Quo.Phone(<Quo API Key>)
quo.connect()
conversations = quo.get_conversations()
Get Messages
This method retrieves all text messages from a specific number.
Return
This method returns a list of dictionaries with the results. Error messages will be index 0 and have a dictionary key of 'error'.
Method Usage
import quo_phone_api.core as Quo
quo = Quo.Phone(<Quo API Key>)
quo.connect()
messages = quo.get_messages('(xxx) xxx-xxxx')
Get Calls
This method retrieves all calls from a specific number.
Return
This method returns a list of dictionaries with the results. Error messages will be index 0 and have a dictionary key of 'error'.
Method Usage
import quo_phone_api.core as Quo
quo = Quo.Phone(<Quo API Key>)
quo.connect()
calls = quo.get_calls('(xxx) xxx-xxxx')
Send a text message
This method sends text messages to a specific number. Note: As per Quo, the text has to be between 1-1600 characters in length.
Return
This method returns a dictionary with the results. Error messages will have a dictionary key of 'error'.
Method Usage
import quo_phone_api.core as Quo
quo = Quo.Phone(<Quo API Key>)
quo.connect()
sent = quo.send_message('(xxx) xxx-xxxx',<MESSAGE BODY>)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quo_phone_api-1.0.0.tar.gz.
File metadata
- Download URL: quo_phone_api-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4b6aff008dbfe453d76d876f7b311efacf0ea68c17ae0835f156c84e197820d
|
|
| MD5 |
cc602a4b69f5022678f5c888992c2548
|
|
| BLAKE2b-256 |
95c027aa0bdb3d1d4a1e99ccebacf26ede85ac33d6adb657d4faf8dd60138ddd
|
File details
Details for the file quo_phone_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: quo_phone_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54817f8f5c2dc28c9d5144ff9181e707090829e81d89111aadb8ed1816758a58
|
|
| MD5 |
ea4eee7751af64836556ac8c7f9487a3
|
|
| BLAKE2b-256 |
f9513a19a20ef0abd1529c227eb279f3c33b1fc6996950d835ddf0bb74e2c40a
|