gupshup-python
gupshup-python is an API wrapper for Gupshup, written in Python.
Installing
pip install gupshup-python
Usage
from gupshup.client import Client
client = Client(apikey='YOUR_API_KEY', app_name='YOUR_APP_NAME')
###Actions for get data These are the actions that the library allows you to perform to send messages by WhatsApp through Gupshup.
- Get Templates app info
client.get_templates_app()
# Returns a json with a list of the templates created for the application in Gupshup..
- Get Variables For Template
client.get_variables_for_template()
# Returns a list with all the variables configured for each of the templates.
- Send Templates Message
data = {
"source": 975846622,
"destination": 12368431,
"template": {
"id": "5f2449fd-e4d6-4d02-9647-e46a1b4635a4",
"params": [
"Test", "New", 123
]
}
}
client.send_templates_msg(data)
# Allows you to send a message through the Gupshup API.
# You must establish the source and destination and additionally the id of the template to use.
# The params will depend on the number of variables you have configured in the template.
Metadata
Release files for gupshup-python 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gupshup_python-0.1.1.tar.gz | 3.2 kB | Without provenance | Details for gupshup_python-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gupshup_python-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for gupshup_python-0.1.1-py3-none-any.whl |
Total release size: 7.1 kB
Release files / gupshup_python-0.1.1.tar.gz
| Download URL | gupshup_python-0.1.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c72fba7a170fe669f12bb578af23b8703460dd2694f8b1dfb4db72c40756c076
|
|
BLAKE2b-256 checksum How to use checksums |
f9476e68bbe9959bb6d8b25b1396d485fc66d82d9ddfb40df2b3f621b4df6d5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.10
|
Release files / gupshup_python-0.1.1-py3-none-any.whl
| Download URL | gupshup_python-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06e661bc8ee878dccbab31795f3c3d7b788caea5c88e806da0da100b114e47d0
|
|
BLAKE2b-256 checksum How to use checksums |
9eb7704e0b2b7905c420d80ee6af70c202667c7cfff68b197d3988f88e38d9ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.10
|
Security for gupshup-python 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.