Introduce:
本实例使用了 request <http://docs.python-requests.org/en/latest/>类库来调用环信的REST API, 在运行本示例代码之前, 请先参考 这里 <http://docs.python-requests.org/en/latest/user/install/>安装.
Introductions
本地开发说明, 本地代码在基于环信官方REST API的对接, 分几部分描述如下.
ease_restapi:
service包为对官方REST API的对接, 按功能模块依次组织代码, 文件名以 ease_ 为前缀标识.
service包__init__.py提供REST API实现的对外调用.
simplify包__init__.py提供环信与本地业务的对外调用, usage.py提供本地业务的调用注意点.
config.py为包配置模板文件.
demo包为本地账户与环信账户的对接的另一种形式.
project_demo:
实用django生成项目.
config.py为该项目ease-restapi配置文件.
common.py为本地公共类库.
demo.py为service包的使用实例, 同时也是测试.
Two Integration Mode:
本地代码与环信账户的链接, 有两种形式: - 本地表的形式, 以demo中models.py, admin.py, chkinfos.py为个单元, 实现本地账户与环信账户的对接. - 官方建议形式, 以simplify中bridge.py为单元, 实现本地账户与环信账户的对接. - 环信ID规则: <http://www.easemob.com/docs/rest/userapi/>
Attention Note:
基于版本:2015-01-21
后续官方REST API的一旦变动, service包的代码相应要微调.
project_demo中urls.py, views.py, 请根据需要补全, 目前只保留用于web形式测试功能.
Changelog
1.3 - 10-Feb-2015
fixed distributing file for careless
1.2 - 25-Jan-2015
First release
Metadata
Release files for ease-restapi 1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ease-restapi-1.3.tar.gz | 29.2 kB | Without provenance | Details for ease-restapi-1.3.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ease_restapi-1.3-py2.7.egg | Legacy Egg format | - | - | Details for ease_restapi-1.3-py2.7.egg |
| ease-restapi-1.3.linux-x86_64.tar.gz | Details for ease-restapi-1.3.linux-x86_64.tar.gz |
Total release size: 144.8 kB
Release files / ease-restapi-1.3.tar.gz
| Download URL | ease-restapi-1.3.tar.gz |
|---|---|
| Size | 29.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1528ab214bc39a4f5056a90c70aafe08b01432630b3731473cd70519d36e7ce6
|
|
BLAKE2b-256 checksum How to use checksums |
99885822ed54cded4dcc29b94bbf51a98860a8fa64e33ebbbafe79595aba07a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ease_restapi-1.3-py2.7.egg
| Download URL | ease_restapi-1.3-py2.7.egg |
|---|---|
| Size | 72.3 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
c5680f816482399e604da8854f79ecb7cfe52b242f979e4f942b7fd4ae050c23
|
|
BLAKE2b-256 checksum How to use checksums |
93b5de683b49b1143913b10d72b17602828085c052a5d19c0fc9647e7284e7f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ease-restapi-1.3.linux-x86_64.tar.gz
| Download URL | ease-restapi-1.3.linux-x86_64.tar.gz |
|---|---|
| Size | 43.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39ea094d88acdbb1a2b54167c14fd0ce3beca14a4c2099d490903a83e2bca989
|
|
BLAKE2b-256 checksum How to use checksums |
fbe8f1831f59f133be8a677ce0d69d08f5d3aa30a0c8913ad6250c4bbb25f782
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ease-restapi 1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.