Skip to main content

A CRM integration module with VTP

Project description

CRM Module VTP

A CRM module for VTP.

Installation

You can install the package using pip:

pip install crm_module_vtp

Usage

Initialize the Client

You can initialize the client using either a username and password or an account token.

Using Username and Password

from crm_module_vtp.client import VTPClient
VTPclient = VTPClient(username="your_username", password="your_password")
token = VTPclient.get_token()

Using Account Token

from crm_module_vtp.client import VTPClient
VTPclient = VTPClient(account_token="your_account_token")
token = VTPclient.get_token()

Get Services

You can use the client to get services by providing the necessary service data.

service_data = {
    "SENDER_ADDRESS": "Đại Mỗ, Nam Từ Liêm, Hà Nội",
    "RECEIVER_ADDRESS": "Định Công, Hoàng Mai, Hà Nội",
    "RECEIVER_PROVINCE": 1,
    "PRODUCT_TYPE": "HH",
    "PRODUCT_WEIGHT": 100,
    "PRODUCT_PRICE": 5000000,
    "MONEY_COLLECTION": "5000000",
    "PRODUCT_LENGTH": 0,
    "PRODUCT_WIDTH": 0,
    "PRODUCT_HEIGHT": 0,
    "TYPE": 1,
}
response = VTPclient.get_services(service_data)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crm_module_vtp-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crm_module_vtp-0.1.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file crm_module_vtp-0.1.1.tar.gz.

File metadata

  • Download URL: crm_module_vtp-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for crm_module_vtp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4c9e5c85452d83f872899b30045723ec55213cba02ae60762f11faabc49f6820
MD5 3059626d7997a77c8aa7defb3136b570
BLAKE2b-256 363ed3b94234144cb7b4597d2eed46f9ed819f10ff29299f705320ba7bfc4c96

See more details on using hashes here.

File details

Details for the file crm_module_vtp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: crm_module_vtp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for crm_module_vtp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c725ab9f4416eb7694c3c7e362d180c8f627856f67b331c34a7ee07be596b72
MD5 fed2c61f2ad839e95021f10c2f29b01d
BLAKE2b-256 4d1014b848a91198646694d11e9536fd508b30de7d1c08498f9343dcbd8243cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page