Skip to main content

LanXin+ OpenAPI

Project description

关于

  • 此Python SDK基于蓝信开放平台API构建

  • 蓝信开放平台,便于企业应用与蓝信集成,让协同与管理更加高效

  • 蓝信开放接口SDK,便捷调用服务端API,例如:认证授权、通讯录、消息通知、角色权限、媒体素材、组织管理、应用管理等具体可以访问 蓝信开放平台API 文档 看看

运行环境

  • 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

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

lanxinplus-openapi-1.0.0.4.tar.gz (91.9 kB view details)

Uploaded Source

Built Distributions

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

lanxinplus_openapi-1.0.0.4-py3-none-any.whl (364.6 kB view details)

Uploaded Python 3

lanxinplus_openapi-1.0.0.4-py2.py3-none-any.whl (364.6 kB view details)

Uploaded Python 2Python 3

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

Hashes for lanxinplus-openapi-1.0.0.4.tar.gz
Algorithm Hash digest
SHA256 327ddbc5f999ac08993c7df68c85681de286935b33d453fc494cb0fe03a883d3
MD5 461fa33fcebd5f811ca355a8ca34ca86
BLAKE2b-256 af1cbf147dfbd01b0ca33b88980e0fff0807b0fa8d79229d88fa72fe32a40417

See more details on using hashes here.

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

Hashes for lanxinplus_openapi-1.0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 70bcbac78dbeee192c3865d22cb060a0402244ad0a4bece8faac1fba69bb3329
MD5 1e3beb371cb4ed6e87a8de74dc8e1233
BLAKE2b-256 ec4a48617f3cdbf8b013fa76c28cf22eb951f78cc2dec586febe605a2dac5db4

See more details on using hashes here.

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

Hashes for lanxinplus_openapi-1.0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 30745b83f327ec92833ae898773c3604dc2a3ea12e0360d2f4001a0beb7de486
MD5 60f427d2370f12ed084f738bcf04ce89
BLAKE2b-256 afc5933f2bab3044b96da88531c277d22edf0a06edaa453f419e1cec29fe12cb

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