Asked Apr 11th, 2020 7:52 a.m. 58 0 0
  • 58 0 0
-1

python

Share
  • 58 0 0

Cả nhà có viêt áp API Zalo không ạ. E đang viết về phân social bằng python mà ko hiểu sao bị lội

from zalo.sdk.oa import ZaloOaInfo, ZaloOaClient
zalo_info = ZaloOaInfo(oa_id="1297963866487386393 ", secret_key="xxxxxxxxxxxxxxx")
zalo_oa_client = ZaloOaClient(zalo_info)
print(zalo_info)
data = {
    'uid': 6149064890744121054,
    'message': 'hello there'
}
params = {'data': data}
send_text_message = zalo_oa_client.post('text', params

Mong cả nhà giúp ạ

Viblo
Let's register a Viblo Account to get more interesting posts.