mobio donotcall, mobio dnc
Project description
Thư viện gọi api bên DNC.
Cài đặt:
$ pip3 install mobio-dnc-sdk
Sử dụng:
1. Khởi tạo sdk:
from mobio.sdks.dnc import MobioDNCSDK
MobioDNCSDK().config(
admin_host="", # admin host
redis_uri="", # redis uri
module_use="", # liên hệ admin để khai báo tên của module
module_encrypt="", # liên hệ admin để lấy mã
)
2. Kiểm tra 1 contact có trong spam :
from mobio.sdks.dnc import MobioDNCSDK
query_search = {"contact": "5361451387259452"}
result = MobioDNCSDK().request_check_one_contact_spam(
merchant_id,
params=query_search,
)
"""
{
"code": 200,
"data": {
"contact": "5361451387259452",
"contact_type": "social",
"staff_id": "c0713108-7449-4bd6-86d5-1198b73495c7",
"social_page_id": "d59d4779-b707-4558-a594-4eb65f106ccc",
"social_type": 1,
"page_name": "Mobio shop",
},
}
"""
3. Kiểm tra nhiều contact có trong spam :
from mobio.sdks.dnc import MobioDNCSDK
query_search = {"contact": "5361451387259452,0371234567"}
result = MobioDNCSDK().request_check_many_contact_spam(
merchant_id,
params=query_search,
)
"""
{
"code": 200,
"data": [
{
"contact": "5361451387259452",
"contact_type": "social",
"staff_id": "c0713108-7449-4bd6-86d5-1198b73495c7",
"social_page_id": "d59d4779-b707-4558-a594-4eb65f106ccc",
"social_type": 1,
"page_name": "Mobio shop",
},
{
"contact": "84371234567",
"contact_type": "phone",
"staff_id": "c0713108-7449-4bd6-86d5-1198b73495c7",
},
]
}
"""
Log - 1.0.0
- tạo sdk
Log - 1.0.1
- sửa cơ chế call api sang call trực tiếp db mongo
Log - 1.0.2
- update lib depend
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mobio-dnc-sdk-1.0.2.tar.gz
(9.4 kB
view details)
Built Distribution
File details
Details for the file mobio-dnc-sdk-1.0.2.tar.gz
.
File metadata
- Download URL: mobio-dnc-sdk-1.0.2.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 883a2c3830967c7c8ccfc5e74cb51ca2d3c7ba1445a9d7958ef62edaec33d061 |
|
MD5 | 4b48ef8f7a6953dbed43fa3753911d53 |
|
BLAKE2b-256 | 957648e18588259fa5b09c6b6e707a7fe0c3a5300ad9280f255fc81187adf910 |
File details
Details for the file mobio_dnc_sdk-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: mobio_dnc_sdk-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 693ddcbcc51b35368e5170eefaf4dd25b1357b0b76494f835b2b136aef0d459c |
|
MD5 | e6acff5329a8e1d5ce45b0906efd465f |
|
BLAKE2b-256 | d27fbb7d800369bfc618ebd424a927ff152aebc196f22bc5a66e451aad6fcfaf |