Skip to content

Latest commit

 

History

History
67 lines (52 loc) · 1.27 KB

README.md

File metadata and controls

67 lines (52 loc) · 1.27 KB

Python SDK的用法说明

安装:

python setup.py install

Get调用方法:

from AssetCloud import AssetCloudRequest

AssetCloudRequest.http_request(
    url = '',
    key = '', 
    secret = '', 
    httpMethods = 'GET')

Post调用方法:

from AssetCloud import AssetCloudRequest

AssetCloudRequest.http_request(
    url = '',
    key = '', 
    secret = '', 
    body = '', 
    httpMethods = 'POST')

Delete调用方法:

from AssetCloud import AssetCloudRequest

AssetCloudRequest.http_request(
    url = '',
    key = '', 
    secret = '', 
    httpMethods = 'DELETE')

Put调用方法:

from AssetCloud import AssetCloudRequest

AssetCloudRequest.http_request(
    url = '',
    key = '', 
    secret = '', 
    body = '', 
    httpMethods = 'PUT')

返回结果为:dict

字段 类型 说明
code int 状态码
success boolean 是否成功
data dict 数据
msg string 返回消息