[英]whatsapp cloud api enable whatsapp_business_messaging permission
我一直在嘗試使用雲 api 發送 whatsapp 消息,但它希望啟用 whatsapp_business_messaging 權限,該權限在與任何已創建的應用程序關聯時默認禁用。
https://developers.facebook.com/docs/whatsapp/cloud-api/get-started#get-access-token 。
我沒有找到任何有關啟用上述權限的文檔。 請協助
已編輯
WhatsApp 雲 API 現已公開!
根據他們的文檔,
開始使用它進行開發前置
有關更多信息,請參閱whatsapp 雲入門文檔
是的,WhatsApp Cloud API 現已公開。
借助 Cloud API,企業可以在幾分鍾內直接從 Facebook 訪問 WhatsApp Business API。
有關更多信息,請查看此WhatsApp Cloud API 指南。
我最近為新的 WhatsApp Cloud API 制作了一個開源 python 包裝器,以幫助開發人員輕松上手,你真的想看看它httpsy://github.com/neurotech/he
安裝
pip install --upgrade heyoo
這是發送消息的示例代碼;
>>> from heyoo import WhatsApp
>>> messenger = WhatsApp('TOKEN', phone_number_id='104xxxxxx')
>>> messenger.send_template('hello_world', 'your number')
對於 Javascript 開發人員,請查看Heyhooh
安裝
npm install heyooh
這里如何發送發送消息;
import WhatsApp from heyhooh
let messenger = new WhatsApp('TOKEN', phone_number_id='104xxxxxx')
messenger.send_template("hello_world", "255757xxxxxx")
對於 PHP 開發人員whatsappcloud-php
安裝
composer require zepson/whatsappcloud-php
這里的代碼如何發送消息;
<?php
require_once 'vendor/autoload.php';
use zepson\Whatsapp\WhatsappClass;
$token = 'YOUR_META_WHATSAPP_APP_ACCESS_TOKEN';
$phone_number_id = '10726082513218961';
//send message
$tsap = new WhatsappClass( $phone_number_id, $token);
$sendtsap = $tsap->send_template('hello_world', '255654485755');
print_r($sendtsap);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.