LanXin+ OpenAPI
Project description
关于
运行环境
Python >= 3.6
安装方法
通过pip安装官方发布的版本(以Linux系统为例):
pip install lanxinplus_openapi
- 也可下载源码包,执行安装命令:
sudo python setup.py install
快速使用
获取 APP_TOKEN
# -*- coding: utf-8 -*-
import lanxinplus_openapi
from lanxinplus_openapi.api import auth_api
config = lanxinplus_openapi.Configuration(
host = "https://example.com/open/apigw", app_id="", app_secret=""
)
with lanxinplus_openapi.ApiClient(config) as api_client:
lanxinplus_openapi.Configuration.set_default(config)
try:
authApi = auth_api.AuthApi(api_client)
resp = authApi.v1_app_token_create("client_credential", config.app_id, config.app_secret)
print(resp)
except lanxinplus_openapi.ApiException as e:
print("Exception when calling AuthApi->v1_apptoken_create_get: %s\n" % e)
测试用例使用说明
运行test
nosetests -s test/test_auth_api.py:TestAuthApi.test_v1_app_token_create
联系我们
License
MIT License, see license file
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lanxinplus-openapi-1.0.0.4.tar.gz.
File metadata
- Download URL: lanxinplus-openapi-1.0.0.4.tar.gz
- Upload date:
- Size: 91.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
327ddbc5f999ac08993c7df68c85681de286935b33d453fc494cb0fe03a883d3
|
|
| MD5 |
461fa33fcebd5f811ca355a8ca34ca86
|
|
| BLAKE2b-256 |
af1cbf147dfbd01b0ca33b88980e0fff0807b0fa8d79229d88fa72fe32a40417
|
File details
Details for the file lanxinplus_openapi-1.0.0.4-py3-none-any.whl.
File metadata
- Download URL: lanxinplus_openapi-1.0.0.4-py3-none-any.whl
- Upload date:
- Size: 364.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70bcbac78dbeee192c3865d22cb060a0402244ad0a4bece8faac1fba69bb3329
|
|
| MD5 |
1e3beb371cb4ed6e87a8de74dc8e1233
|
|
| BLAKE2b-256 |
ec4a48617f3cdbf8b013fa76c28cf22eb951f78cc2dec586febe605a2dac5db4
|
File details
Details for the file lanxinplus_openapi-1.0.0.4-py2.py3-none-any.whl.
File metadata
- Download URL: lanxinplus_openapi-1.0.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 364.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30745b83f327ec92833ae898773c3604dc2a3ea12e0360d2f4001a0beb7de486
|
|
| MD5 |
60f427d2370f12ed084f738bcf04ce89
|
|
| BLAKE2b-256 |
afc5933f2bab3044b96da88531c277d22edf0a06edaa453f419e1cec29fe12cb
|