WeChat API
This Python package is automatically generated by the Swagger Codegen project:
- API version: 1.0.4
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com//.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com//.git
)
Then import the package:
import wx_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import wx_client
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import wx_client
from wx_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = wx_client.CustomerApi(wx_client.ApiClient(configuration))
customer_id = 789 # int | ID of customer to return
operation_type = 789 # int | operation type, (1, \"联系方式首得\"), (2, \"联系方式获得\"),(3, \"接待客户\"), (4, \"有效客户\"), (5, \"成交客户\"), (6, \"邀约客户\"), (7, \"邀约成功\")
try:
# create performance log
api_instance.create_customer_performancelog(customer_id, operation_type)
except ApiException as e:
print("Exception when calling CustomerApi->create_customer_performancelog: %s\n" % e)
All URIs are relative to https://virtserver.swaggerhub.com/sww0825521xy/SalesManagement/1.0.0
Class | Method | HTTP request | Description |
---|---|---|---|
CustomerApi | create_customer_performancelog | POST /customer/performance/{customerId}/{operationType} | create performance log |
CustomerApi | create_customer_servicelog | POST /customer/servicelog/{customerId} | create customer service log by customer id |
CustomerApi | create_or_update_customer_preference | POST /customer/preference/{customerId} | create or update customer preference by customer id |
CustomerApi | delete_customer_by_id | DELETE /customer/{customerId} | delete customer by customer id |
CustomerApi | delete_customer_preference_by_id | DELETE /customer/preference/{customerId} | delete customer preference by customer id |
CustomerApi | delete_customer_servicelog_by_id | DELETE /customer/servicelog/{customerId} | delete customer service log by customer id |
CustomerApi | get_customer_by_id | GET /customer/{customerId} | get customer info by customer id |
CustomerApi | get_customer_preference_by_id | GET /customer/preference/{customerId} | get customer preference by customer id |
CustomerApi | get_customer_servicelog_by_id | GET /customer/servicelog/{customerId}/{page}/{pageSize} | get customer service log by customer id |
CustomerApi | merge_customer | POST /customer/merge/{srcCustomerId}/{dstCustomerId} | merge two customer |
CustomerApi | update_customer_by_id | POST /customer/{customerId} | update customer info by customer id |
CustomerPoolApi | getcustomer_pool_list | GET /customer/pool/{page}/{pageSize} | List customer pool |
CustomerPoolApi | wechat_get_acceptedcustomer_pool_list | GET /customer/wechat/accepted/pool/{page}/{pageSize} | wechat get accepted List customer pool |
CustomerPoolApi | wechat_get_unacceptedcustomer_pool_list | GET /customer/wechat/unaccepted/pool/{page}/{pageSize} | wechat get unaccepted List customer pool |
CustomerPoolApi | wechat_getcustomer_pool_list | GET /customer/wechat/pool/{page}/{pageSize} | wechat get accepted and unaccepted List customer pool |
CustomerPoolAcceptApi | accept_customer_from_pool | POST /customer/pool/accept/{customerId} | Accept customer from pool |
LoginApi | login | POST /login | login |
SalemanApi | get_salesman_info | GET /salesman/info | Find current login salesman |
- CustomerDto
- CustomerPoolDto
- CustomerPreferenceDto
- CustomerServiceLogDto
- CustomerServiceLogPoolDto
- Salesman
All endpoints do not require authorization.