Git Product home page Git Product logo

ws's Introduction

wx-api

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

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

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 

Setuptools

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

Getting Started

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)

Documentation for API Endpoints

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

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

[email protected]

ws's People

Contributors

squall890 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.