Messenger Business api
======================
This repository is a wrapper for Meta messenger api for Messenger and
Instagram
Send a message
--------------
.. code:: python
from messenger-business-apy import MessengerApi
access_token: "YOUR TOKEN",
page_id: "YOUR PAGE ID" # like ID of page instagram
api_version: "YOUR PAGE VERSION" # default v16.0 - OPTIONAL
messenger = MessengerApi(access_token=access_token,page_id=page_id,api_version=api_version)
messenger.send_text_message(user_id='291380182300130918', message='This is a test!')
#ps the user_id is fake only example
Download of file
----------------
.. code:: python
from messenger-business-apy import MessengerApi
access_token: 'YOUR TOKEN,
page_id: "YOUR PAGE ID" # like ID of page instagram
api_version: "YOUR PAGE VERSION" # default v16.0 - OPTIONAL
messenger = MessengerApi(access_token=access_token,page_id=page_id,api_version=api_version)
uri: "URL for downloading media file"
messenger.get_media(uri=uri )
Raw data
{
"_id": null,
"home_page": "",
"name": "messenger-business-api",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,Meta,Facebook,Instagram,message,chat-bot",
"author": "Yuri Ramos Lima",
"author_email": "yurilima93@hotmail.com",
"download_url": "https://files.pythonhosted.org/packages/cb/19/7aacfb242c6f56e38dcddfd1ce6c5a2b7c8948ccaa922d9afade707c7657/messenger-business-api-1.0.5.tar.gz",
"platform": null,
"description": "Messenger Business api\n======================\n\nThis repository is a wrapper for Meta messenger api for Messenger and\nInstagram\n\nSend a message\n--------------\n\n.. code:: python\n\n from messenger-business-apy import MessengerApi\n\n access_token: \"YOUR TOKEN\", \n page_id: \"YOUR PAGE ID\" # like ID of page instagram\n api_version: \"YOUR PAGE VERSION\" # default v16.0 - OPTIONAL\n\n messenger = MessengerApi(access_token=access_token,page_id=page_id,api_version=api_version)\n\n\n messenger.send_text_message(user_id='291380182300130918', message='This is a test!')\n\n #ps the user_id is fake only example\n\nDownload of file\n----------------\n\n.. code:: python\n\n from messenger-business-apy import MessengerApi\n\n access_token: 'YOUR TOKEN, \n page_id: \"YOUR PAGE ID\" # like ID of page instagram\n api_version: \"YOUR PAGE VERSION\" # default v16.0 - OPTIONAL\n\n messenger = MessengerApi(access_token=access_token,page_id=page_id,api_version=api_version)\n\n uri: \"URL for downloading media file\" \n\n messenger.get_media(uri=uri )\n\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "This repository is a wrapper for Meta messenger api for Messenger and Instagram",
"version": "1.0.5",
"project_urls": null,
"split_keywords": [
"python",
"meta",
"facebook",
"instagram",
"message",
"chat-bot"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "92e22f48cc75ea21ea7edadcc2f20ccfd97a9ef6db5d7208ddd2ef3d1fa90c42",
"md5": "a8a1df84ac9fab7bc1c3a7a05133ceb3",
"sha256": "da5380bc843047a30dd2d27a5f985429a538748a5ccd507080382f3500cd3605"
},
"downloads": -1,
"filename": "messenger_business_api-1.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a8a1df84ac9fab7bc1c3a7a05133ceb3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4087,
"upload_time": "2023-06-23T22:43:37",
"upload_time_iso_8601": "2023-06-23T22:43:37.022258Z",
"url": "https://files.pythonhosted.org/packages/92/e2/2f48cc75ea21ea7edadcc2f20ccfd97a9ef6db5d7208ddd2ef3d1fa90c42/messenger_business_api-1.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cb197aacfb242c6f56e38dcddfd1ce6c5a2b7c8948ccaa922d9afade707c7657",
"md5": "0cc7baf36cfe80551217263c0edf54b7",
"sha256": "d98f0427a393c65330b38598e174896c510adc9ab26aa3e78855e4da577f09da"
},
"downloads": -1,
"filename": "messenger-business-api-1.0.5.tar.gz",
"has_sig": false,
"md5_digest": "0cc7baf36cfe80551217263c0edf54b7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3394,
"upload_time": "2023-06-23T22:43:38",
"upload_time_iso_8601": "2023-06-23T22:43:38.312345Z",
"url": "https://files.pythonhosted.org/packages/cb/19/7aacfb242c6f56e38dcddfd1ce6c5a2b7c8948ccaa922d9afade707c7657/messenger-business-api-1.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-23 22:43:38",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "messenger-business-api"
}