Skip to main content

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 

Metadata

Release files for mobio-dnc-sdk 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mobio-dnc-sdk 1.0.2
File Size Uploaded Provenance
mobio-dnc-sdk-1.0.2.tar.gz 9.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mobio-dnc-sdk 1.0.2
File Interpreter ABI Platform
mobio_dnc_sdk-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / mobio-dnc-sdk-1.0.2.tar.gz

Download URL mobio-dnc-sdk-1.0.2.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
883a2c3830967c7c8ccfc5e74cb51ca2d3c7ba1445a9d7958ef62edaec33d061
BLAKE2b-256 checksum
How to use checksums
957648e18588259fa5b09c6b6e707a7fe0c3a5300ad9280f255fc81187adf910
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.7

Release files / mobio_dnc_sdk-1.0.2-py3-none-any.whl

Download URL mobio_dnc_sdk-1.0.2-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
693ddcbcc51b35368e5170eefaf4dd25b1357b0b76494f835b2b136aef0d459c
BLAKE2b-256 checksum
How to use checksums
d27fbb7d800369bfc618ebd424a927ff152aebc196f22bc5a66e451aad6fcfaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.7

Security for mobio-dnc-sdk 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page