Name | moiz-gillani-whatsapp-cloud-api-sdk JSON |
Version |
1.0.2
JSON |
| download |
home_page | |
Summary | Use cloud-hosted version of the WhatsApp Business API to send and receive messages |
upload_time | 2023-06-01 13:17:02 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.7 |
license | |
keywords |
whatsapp
messages
api
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Getting Started with WhatsApp Cloud API
## Introduction
Welcome to the WhatsApp API from Meta.
Individual developers and existing Business Service Providers (BSPs) can now send and receive messages via the WhatsApp API using a cloud-hosted version of the WhatsApp Business API. Compared to the previous solutions, the cloud-based WhatsApp API is simpler to use and is a more cost-effective way for businesses to use WhatsApp. Please keep in mind the following configurations:
| Name | Description |
| --- | --- |
| Version | Latest [Graph API version](https://developers.facebook.com/docs/graph-api/). For example: v13.0 |
| User-Access-Token | Your user access token after signing up at [developers.facebook.com](https://developers.facebook.com). |
| WABA-ID | Your WhatsApp Business Account (WABA) ID. |
| Phone-Number-ID | ID for the phone number connected to the WhatsApp Business API. You can get this with a [Get Phone Number ID request](3184f675-d289-46f1-88e5-e2b11549c418). |
| Business-ID | Your Business' ID. Once you have your Phone-Number-ID, make a [Get Business Profile request](#99fd3743-46cf-46c4-95b5-431c6a4eb0b0) to get your Business' ID. |
| Recipient-Phone-Number | Phone number that you want to send a WhatsApp message to. |
| Media-ID | ID for the media to [send a media message](#0a632754-3788-43bf-b785-ac6a73423d5a) or [media template message](#439c926a-8a6c-4972-ab2c-d99297716da9) to your customers. |
| Media-URL | URL for the media to [download media content](#cbe5ece3-246c-48f3-b338-074187dfef66). |
## Install the Package
The package is compatible with Python versions `3 >=3.7, <= 3.11`.
Install the package from PyPi using the following pip command:
```python
pip install moiz-gillani-whatsapp-cloud-api-sdk==1.0.2
```
You can also view the package at:
https://pypi.python.org/pypi/moiz-gillani-whatsapp-cloud-api-sdk/1.0.2
## Initialize the API Client
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/client.md)
The following parameters are configurable for the API Client:
| Parameter | Type | Description |
| --- | --- | --- |
| `version` | `string` | *Default*: `'v13.0'` |
| `environment` | Environment | The API environment. <br> **Default: `Environment.PRODUCTION`** |
| `http_client_instance` | `HttpClient` | The Http Client passed from the sdk user for making requests |
| `override_http_client_configuration` | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
| `http_call_back` | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
| `timeout` | `float` | The value to use for connection timeout. <br> **Default: 60** |
| `max_retries` | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
| `backoff_factor` | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
| `retry_statuses` | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
| `retry_methods` | `Array of string` | The http methods on which retry is to be done. <br> **Default: ['GET', 'PUT']** |
| `access_token` | `string` | The OAuth 2.0 Access Token to use for API requests. |
The API client can be initialized as follows:
```python
from whatsappcloudapi.whatsappcloudapi_client import WhatsappcloudapiClient
from whatsappcloudapi.configuration import Environment
client = WhatsappcloudapiClient(
access_token='AccessToken'
)
```
## Authorization
This API uses `OAuth 2 Bearer token`.
## List of APIs
* [Business Profiles](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/controllers/business-profiles.md)
* [Phone Numbers](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/controllers/phone-numbers.md)
* [Two-Step Verification](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/controllers/two-step-verification.md)
* [Messages](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/controllers/messages.md)
* [Registration](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/controllers/registration.md)
* [Media](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/controllers/media.md)
## Classes Documentation
* [Utility Classes](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/utility-classes.md)
* [HttpResponse](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/http-response.md)
* [HttpRequest](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/http-request.md)
Raw data
{
"_id": null,
"home_page": "",
"name": "moiz-gillani-whatsapp-cloud-api-sdk",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "whatsapp,messages,api",
"author": "",
"author_email": "moiz gillani <moiz.gillani@apimatic.io>",
"download_url": "https://files.pythonhosted.org/packages/3a/98/e707f58d420a5c036838cc2e39a3166dd0ed8af60d01dcb50e059a5bfbdd/moiz-gillani-whatsapp-cloud-api-sdk-1.0.2.tar.gz",
"platform": null,
"description": "\n# Getting Started with WhatsApp Cloud API\n\n## Introduction\n\nWelcome to the WhatsApp API from Meta.\n\nIndividual developers and existing Business Service Providers (BSPs) can now send and receive messages via the WhatsApp API using a cloud-hosted version of the WhatsApp Business API. Compared to the previous solutions, the cloud-based WhatsApp API is simpler to use and is a more cost-effective way for businesses to use WhatsApp. Please keep in mind the following configurations:\n\n| Name | Description |\n| --- | --- |\n| Version | Latest [Graph API version](https://developers.facebook.com/docs/graph-api/). For example: v13.0 |\n| User-Access-Token | Your user access token after signing up at [developers.facebook.com](https://developers.facebook.com). |\n| WABA-ID | Your WhatsApp Business Account (WABA) ID. |\n| Phone-Number-ID | ID for the phone number connected to the WhatsApp Business API. You can get this with a [Get Phone Number ID request](3184f675-d289-46f1-88e5-e2b11549c418). |\n| Business-ID | Your Business' ID. Once you have your Phone-Number-ID, make a [Get Business Profile request](#99fd3743-46cf-46c4-95b5-431c6a4eb0b0) to get your Business' ID. |\n| Recipient-Phone-Number | Phone number that you want to send a WhatsApp message to. |\n| Media-ID | ID for the media to [send a media message](#0a632754-3788-43bf-b785-ac6a73423d5a) or [media template message](#439c926a-8a6c-4972-ab2c-d99297716da9) to your customers. |\n| Media-URL | URL for the media to [download media content](#cbe5ece3-246c-48f3-b338-074187dfef66). |\n\n## Install the Package\n\nThe package is compatible with Python versions `3 >=3.7, <= 3.11`.\nInstall the package from PyPi using the following pip command:\n\n```python\npip install moiz-gillani-whatsapp-cloud-api-sdk==1.0.2\n```\n\nYou can also view the package at:\nhttps://pypi.python.org/pypi/moiz-gillani-whatsapp-cloud-api-sdk/1.0.2\n\n## Initialize the API Client\n\n**_Note:_** Documentation for the client can be found [here.](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/client.md)\n\nThe following parameters are configurable for the API Client:\n\n| Parameter | Type | Description |\n| --- | --- | --- |\n| `version` | `string` | *Default*: `'v13.0'` |\n| `environment` | Environment | The API environment. <br> **Default: `Environment.PRODUCTION`** |\n| `http_client_instance` | `HttpClient` | The Http Client passed from the sdk user for making requests |\n| `override_http_client_configuration` | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |\n| `http_call_back` | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |\n| `timeout` | `float` | The value to use for connection timeout. <br> **Default: 60** |\n| `max_retries` | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |\n| `backoff_factor` | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |\n| `retry_statuses` | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |\n| `retry_methods` | `Array of string` | The http methods on which retry is to be done. <br> **Default: ['GET', 'PUT']** |\n| `access_token` | `string` | The OAuth 2.0 Access Token to use for API requests. |\n\nThe API client can be initialized as follows:\n\n```python\nfrom whatsappcloudapi.whatsappcloudapi_client import WhatsappcloudapiClient\nfrom whatsappcloudapi.configuration import Environment\n\nclient = WhatsappcloudapiClient(\n access_token='AccessToken'\n)\n```\n\n## Authorization\n\nThis API uses `OAuth 2 Bearer token`.\n\n## List of APIs\n\n* [Business Profiles](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/controllers/business-profiles.md)\n* [Phone Numbers](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/controllers/phone-numbers.md)\n* [Two-Step Verification](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/controllers/two-step-verification.md)\n* [Messages](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/controllers/messages.md)\n* [Registration](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/controllers/registration.md)\n* [Media](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/controllers/media.md)\n\n## Classes Documentation\n\n* [Utility Classes](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/utility-classes.md)\n* [HttpResponse](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/http-response.md)\n* [HttpRequest](https://www.github.com/moizgillani/whatsapp-cloud-api-python-sdk/tree/1.0.2/doc/http-request.md)\n\n",
"bugtrack_url": null,
"license": "",
"summary": "Use cloud-hosted version of the WhatsApp Business API to send and receive messages",
"version": "1.0.2",
"project_urls": {
"Documentation": "https://dev.apimatic.io/api-docs-preview/dashboard/64789018957008f48600193d/v/1_0#/http/step-by-step-tutorial"
},
"split_keywords": [
"whatsapp",
"messages",
"api"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5cc57dab0aa8ed16a80bf61d0d5c2aa75724086d8fbf1474fe192ac276eff1ef",
"md5": "dabb60b5708a5c23eac254116cb9de32",
"sha256": "b3b21083463bdb4644c7d9ac92f7ba6ed6bcebcfe85c12ddeea7c11d4b8604d7"
},
"downloads": -1,
"filename": "moiz_gillani_whatsapp_cloud_api_sdk-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "dabb60b5708a5c23eac254116cb9de32",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 80605,
"upload_time": "2023-06-01T13:17:00",
"upload_time_iso_8601": "2023-06-01T13:17:00.731806Z",
"url": "https://files.pythonhosted.org/packages/5c/c5/7dab0aa8ed16a80bf61d0d5c2aa75724086d8fbf1474fe192ac276eff1ef/moiz_gillani_whatsapp_cloud_api_sdk-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3a98e707f58d420a5c036838cc2e39a3166dd0ed8af60d01dcb50e059a5bfbdd",
"md5": "8e95edf3fa2922f2be8910eddd088c96",
"sha256": "dbd4546e9add34ce39604fe8bd558eddef3c6d722408b870735309311c9097ab"
},
"downloads": -1,
"filename": "moiz-gillani-whatsapp-cloud-api-sdk-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "8e95edf3fa2922f2be8910eddd088c96",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 30972,
"upload_time": "2023-06-01T13:17:02",
"upload_time_iso_8601": "2023-06-01T13:17:02.748456Z",
"url": "https://files.pythonhosted.org/packages/3a/98/e707f58d420a5c036838cc2e39a3166dd0ed8af60d01dcb50e059a5bfbdd/moiz-gillani-whatsapp-cloud-api-sdk-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-01 13:17:02",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "moiz-gillani-whatsapp-cloud-api-sdk"
}