# hep-rest-api
The REST API for HEP protocol
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
- API version: v1
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
## Requirements.
Python 2.7 and 3.4+
## Installation & Usage
### pip install
If the python package is hosted on Github, you can install directly from Github
```sh
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
```
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
Then import the package:
```python
import hep_rest_api
```
### Setuptools
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)
Then import the package:
```python
import hep_rest_api
```
## Getting Started
Please follow the [installation procedure](#installation--usage) and then run the following:
```python
from __future__ import print_function
import time
import hep_rest_api
from hep_rest_api.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = hep_rest_api.RestApi(hep_rest_api.ApiClient(configuration))
api_version = 'api_version_example' # str |
dapp_id = 'dapp_id_example' # str |
dapp_key = 'dapp_key_example' # str | The decentralized application access key
protocol = 'protocol_example' # str | The protocol name. default is 'HEP'.
version = 'version_example' # str | The protocol version such as '1.0'
ts = 56 # int | The current timestamp
nonce = 'nonce_example' # str | The random string or auto-increment sequence
os = 'os_example' # str | The operating system of client such as ios, android, dweb,etc.
language = 'language_example' # str | The i18n language code such as zh, en, etc.
dapp_signature_method = 'dapp_signature_method_example' # str | The signature method used by dapp.
dapp_signature = 'dapp_signature_example' # str | The signature generated by dapp.
try:
api_response = api_instance.rest_dapps_read(api_version, dapp_id, dapp_key, protocol, version, ts, nonce, os, language, dapp_signature_method, dapp_signature)
pprint(api_response)
except ApiException as e:
print("Exception when calling RestApi->rest_dapps_read: %s\n" % e)
# create an instance of the API class
api_instance = hep_rest_api.RestApi(hep_rest_api.ApiClient(configuration))
api_version = 'api_version_example' # str |
try:
api_instance.rest_health_list(api_version)
except ApiException as e:
print("Exception when calling RestApi->rest_health_list: %s\n" % e)
# create an instance of the API class
api_instance = hep_rest_api.RestApi(hep_rest_api.ApiClient(configuration))
api_version = 'api_version_example' # str |
txid = 'txid_example' # str |
dapp_key = 'dapp_key_example' # str | The decentralized application access key
protocol = 'protocol_example' # str | The protocol name. default is 'HEP'.
version = 'version_example' # str | The protocol version such as '1.0'
ts = 56 # int | The current timestamp
nonce = 'nonce_example' # str | The random string or auto-increment sequence
os = 'os_example' # str | The operating system of client such as ios, android, dweb,etc.
language = 'language_example' # str | The i18n language code such as zh, en, etc.
dapp_signature_method = 'dapp_signature_method_example' # str | The signature method used by dapp.
dapp_signature = 'dapp_signature_example' # str | The signature generated by dapp.
try:
api_response = api_instance.rest_newchain_tx_read(api_version, txid, dapp_key, protocol, version, ts, nonce, os, language, dapp_signature_method, dapp_signature)
pprint(api_response)
except ApiException as e:
print("Exception when calling RestApi->rest_newchain_tx_read: %s\n" % e)
# create an instance of the API class
api_instance = hep_rest_api.RestApi(hep_rest_api.ApiClient(configuration))
api_version = 'api_version_example' # str |
_date = '_date_example' # str |
dapp_key = 'dapp_key_example' # str | The decentralized application access key
protocol = 'protocol_example' # str | The protocol name. default is 'HEP'.
version = 'version_example' # str | The protocol version such as '1.0'
ts = 56 # int | The current timestamp
nonce = 'nonce_example' # str | The random string or auto-increment sequence
os = 'os_example' # str | The operating system of client such as ios, android, dweb,etc.
language = 'language_example' # str | The i18n language code such as zh, en, etc.
dapp_signature_method = 'dapp_signature_method_example' # str | The signature method used by dapp.
dapp_signature = 'dapp_signature_example' # str | The signature generated by dapp.
try:
api_response = api_instance.rest_newforce_read(api_version, _date, dapp_key, protocol, version, ts, nonce, os, language, dapp_signature_method, dapp_signature)
pprint(api_response)
except ApiException as e:
print("Exception when calling RestApi->rest_newforce_read: %s\n" % e)
# create an instance of the API class
api_instance = hep_rest_api.RestApi(hep_rest_api.ApiClient(configuration))
api_version = 'api_version_example' # str |
newid = 'newid_example' # str |
dapp_key = 'dapp_key_example' # str | The decentralized application access key
protocol = 'protocol_example' # str | The protocol name. default is 'HEP'.
version = 'version_example' # str | The protocol version such as '1.0'
ts = 56 # int | The current timestamp
nonce = 'nonce_example' # str | The random string or auto-increment sequence
os = 'os_example' # str | The operating system of client such as ios, android, dweb,etc.
language = 'language_example' # str | The i18n language code such as zh, en, etc.
dapp_signature_method = 'dapp_signature_method_example' # str | The signature method used by dapp.
dapp_signature = 'dapp_signature_example' # str | The signature generated by dapp.
try:
api_response = api_instance.rest_newids_read(api_version, newid, dapp_key, protocol, version, ts, nonce, os, language, dapp_signature_method, dapp_signature)
pprint(api_response)
except ApiException as e:
print("Exception when calling RestApi->rest_newids_read: %s\n" % e)
# create an instance of the API class
api_instance = hep_rest_api.RestApi(hep_rest_api.ApiClient(configuration))
body = hep_rest_api.AuthCacheRequest() # AuthCacheRequest |
api_version = 'api_version_example' # str |
try:
api_response = api_instance.rest_newnet_caches_auth_create(body, api_version)
pprint(api_response)
except ApiException as e:
print("Exception when calling RestApi->rest_newnet_caches_auth_create: %s\n" % e)
# create an instance of the API class
api_instance = hep_rest_api.RestApi(hep_rest_api.ApiClient(configuration))
api_version = 'api_version_example' # str |
auth_hash = 'auth_hash_example' # str |
dapp_key = 'dapp_key_example' # str | The decentralized application access key
protocol = 'protocol_example' # str | The protocol name. default is 'HEP'.
version = 'version_example' # str | The protocol version such as '1.0'
ts = 56 # int | The current timestamp
nonce = 'nonce_example' # str | The random string or auto-increment sequence
os = 'os_example' # str | The operating system of client such as ios, android, dweb,etc.
language = 'language_example' # str | The i18n language code such as zh, en, etc.
dapp_signature_method = 'dapp_signature_method_example' # str | The signature method used by dapp.
dapp_signature = 'dapp_signature_example' # str | The signature generated by dapp.
try:
api_response = api_instance.rest_newnet_caches_auth_read(api_version, auth_hash, dapp_key, protocol, version, ts, nonce, os, language, dapp_signature_method, dapp_signature)
pprint(api_response)
except ApiException as e:
print("Exception when calling RestApi->rest_newnet_caches_auth_read: %s\n" % e)
# create an instance of the API class
api_instance = hep_rest_api.RestApi(hep_re
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共79个文件
py:71个
txt:4个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:hep-rest-api-1.0.11.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
hep-rest-api-1.0.11.tar.gz (79个子文件)
hep-rest-api-1.0.11
PKG-INFO 350B
hep_rest_api
models
newid_response.py 5KB
thing.py 5KB
order_item.py 7KB
pay_cache_response.py 21KB
retrieve_proof_rewards_request.py 12KB
cancel_proof_request.py 15KB
order.py 10KB
retrieve_oracle_response.py 5KB
newchain_transaction_response.py 9KB
create_proof_request.py 15KB
auth_cache_response.py 17KB
cancel_proof_response.py 2KB
retrieve_proof_receipts_response.py 3KB
create_auth_cache_response.py 3KB
__init__.py 2KB
receipt_field.py 4KB
proof.py 7KB
retrieve_proof_receipts_request.py 12KB
proof_data.py 5KB
auth_cache_request.py 17KB
retrieve_proof_rewards_response.py 3KB
create_pay_cache_response.py 3KB
newforce_daily_stats_response.py 6KB
dapp.py 15KB
proof_reward.py 8KB
pay_cache_request.py 21KB
proof_response.py 15KB
create_proof_response.py 3KB
scenarios
auth.py 3KB
pay.py 4KB
__init__.py 4KB
proof.py 6KB
utils.py 7KB
entry.py 186B
configuration.py 8KB
api
rest_api.py 107KB
__init__.py 133B
__init__.py 2KB
api_client.py 24KB
rest.py 13KB
test
test_create_proof_response.py 903B
test_proof_reward.py 837B
test_cancel_proof_request.py 895B
test_create_pay_cache_response.py 929B
test_create_auth_cache_response.py 937B
test_retrieve_proof_receipts_response.py 985B
test_newchain_transaction_response.py 967B
test_create_proof_request.py 895B
test_proof_data.py 821B
test_auth_cache_response.py 887B
test_newid_response.py 853B
test_pay_cache_response.py 879B
test_retrieve_proof_rewards_response.py 977B
test_proof_response.py 853B
test_retrieve_proof_rewards_request.py 969B
test_retrieve_oracle_response.py 927B
test_basic.py 6KB
test_retrieve_proof_receipts_request.py 977B
__init__.py 0B
test_pay_cache_request.py 871B
test_auth_cache_request.py 879B
test_receipt_field.py 845B
test_rest_api.py 2KB
test_cancel_proof_response.py 903B
test_thing.py 787B
test_order_item.py 821B
test_order.py 787B
test_proof.py 787B
test_newforce_daily_stats_response.py 961B
test_dapp.py 779B
setup.cfg 38B
setup.py 1017B
README.md 17KB
hep_rest_api.egg-info
PKG-INFO 350B
requires.txt 93B
SOURCES.txt 3KB
top_level.txt 18B
dependency_links.txt 1B
共 79 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- MFC IE控件使用方式
- 基于STM32的电子罗盘
- 21108229王子涵.ipynb
- 基于STM32的压力检测系统
- 基于STM32的温度计,将手机与蓝牙连接,在android应用程序上显示当前温度
- 前端开发基础入门教程 JavaScript语言编程基础教程 共5个章节.rar
- MFC IE控件使用方式
- 前端开发基础入门教程 JavaScript语言编程基础教程 第5章 JS实战 共16页.pptx
- 前端开发基础入门教程 JavaScript语言编程基础教程 第4章 DHTML 共30页.pptx
- 前端开发基础入门教程 JavaScript语言编程基础教程 第3章 客户端JavaScript 共38页.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功