Skip to main content

beso aop python api sdk.

Project description

sdk-python

安装

pip install requests

pip install rsa

  • 调用方式
    # 创建请求
    request = MemberInfoGetRequest()
    # 请求参数
    model = MemberInfoGetModel()
    model.age = 22
    model.name = 'jim'
    model.address = 'xx'
    # 添加请求参数
    request.biz_model = model

    # 添加上传文件
    # files = {
    #     'file1': open('aa.txt', 'rb'),
    #     'file2': open('bb.txt', 'rb')
    # }
    # request.files = files

    # 调用请求
    response = self.client.execute(request)

    if response.is_success():
        print 'response: ', response
        print 'is_vip:', response.get('member_info').get('is_vip', 0)
    else:
        print '请求失败,code:%s, msg:%s, sub_code:%s, sub_msg:%s' % \
              (response.code, response.msg, response.sub_code, response.sub_msg)

详见test.py

代码规范:

Type Public Internal
Modules lower_with_under _lower_with_under
Packages lower_with_under
Classes CapWords _CapWords
Exceptions CapWords
Functions lower_with_under() _lower_with_under()
Global/Class Constants CAPS_WITH_UNDER _CAPS_WITH_UNDER
Global/Class Variables lower_with_under _lower_with_under
Instance Variables lower_with_under _lower_with_under (protected) or __lower_with_under (private)
Method Names lower_with_under() _lower_with_under() (protected) or __lower_with_under() (private)
Function/Method Parameters lower_with_under
Local Variables lower_with_under

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

beso_aop_api-0.1.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

beso_aop_api-0.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file beso_aop_api-0.1.0.tar.gz.

File metadata

  • Download URL: beso_aop_api-0.1.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for beso_aop_api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 659ab5f8dd150e5433cc62485d0967e067d3b52b05552dff77a514875e27a6cb
MD5 a4099a9894b1f12aa92540716d51e90c
BLAKE2b-256 933241351c4f23e066ab397cc9b7ac58448b0972a08143b8338b9868c195ff6b

See more details on using hashes here.

File details

Details for the file beso_aop_api-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: beso_aop_api-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for beso_aop_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb5172e5171569e040b97873564a0696b09294bb881efcffedc3902cf52b1e9b
MD5 a4bfc48bec32649517b296a79f900fd5
BLAKE2b-256 22d6c9c14e79d7fd2cbc0e408b6e0b833371ad3968111c264c559c66b274e302

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