代码拉取完成,页面将自动刷新
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
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:
import justap_server_sdk_python
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import justap_server_sdk_python
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import justap_server_sdk_python
from justap_server_sdk_python.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = justap_server_sdk_python.Configuration()
configuration.api_key['X-JUSTAP-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-JUSTAP-API-KEY'] = 'Bearer'
# create an instance of the API class
api_instance = justap_server_sdk_python.DefaultApi(justap_server_sdk_python.ApiClient(configuration))
body = justap_server_sdk_python.V1CreateUserRequest() # V1CreateUserRequest |
try:
# 创建 Business User 对象
api_response = api_instance.business_user_service_create_user(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->business_user_service_create_user: %s\n" % e)
All URIs are relative to http://127.0.0.1:21011
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | business_user_service_create_user | POST /v1/business_users | 创建 Business User 对象 |
DefaultApi | business_user_service_delete_user | DELETE /v1/business_users/{id} | 删除 Business User 对象 |
DefaultApi | business_user_service_list_all_users | GET /v1/business_users | 查询 Business User 对象列表 |
DefaultApi | business_user_service_retrieve_user | GET /v1/business_users/{id} | 查询 Business User 对象 |
DefaultApi | business_user_service_search_users | GET /v1/business_users/search | 查询 Business User 对象列表 |
DefaultApi | business_user_service_update_user | PUT /v1/business_users/{user.id} | 更新 Business User 对象 |
DefaultApi | business_user_service_update_user2 | PATCH /v1/business_users/{user.id} | 更新 Business User 对象 |
DefaultApi | charge_service_charges | POST /transaction/v1/charges | 创建 Charge 对象 |
DefaultApi | charge_service_charges2 | POST /v1/charges | 创建 Charge 对象 |
DefaultApi | charge_service_query_charge | GET /transaction/v1/charges/{charge_id} | 查询 Charge 对象 |
DefaultApi | charge_service_query_charge2 | GET /v1/charges/{charge_id} | 查询 Charge 对象 |
DefaultApi | charge_service_query_charge3 | GET /v1/charges/merchant_trade_id/{merchant_trade_id} | 查询 Charge 对象 |
DefaultApi | charge_service_query_charge_list | GET /transaction/v1/charges | 查询 Charge 对象列表 |
DefaultApi | charge_service_query_charge_list2 | GET /v1/charges | 查询 Charge 对象列表 |
DefaultApi | charge_service_reverse_charge | POST /transaction/v1/charges/{charge_id}/reverse | 撤销 Charge 对象 |
DefaultApi | charge_service_reverse_charge2 | POST /v1/charges/{charge_id}/reverse | 撤销 Charge 对象 |
DefaultApi | refund_service_query_refund | GET /transaction/v1/charges/{charge_id}/refunds/{refund_id} | 查询 Refund 对象 |
DefaultApi | refund_service_query_refund2 | GET /v1/refunds/{refund_id} | 查询 Refund 对象 |
DefaultApi | refund_service_query_refund_list | GET /transaction/v1/charges/{charge_id}/refunds | 查询 Refund 对象列表 |
DefaultApi | refund_service_query_refund_list2 | GET /v1/refunds | 查询 Refund 对象列表 |
DefaultApi | refund_service_refunds | POST /transaction/v1/refunds | 创建 Refund 对象 |
DefaultApi | refund_service_refunds2 | POST /v1/refunds | 创建 Refund 对象 |
DefaultApi | royalty_service_create_royalty | POST /v1/royalties | 创建 Royalty 对象 |
DefaultApi | royalty_service_list_all_royalties | GET /v1/royalties | 查询 Royalty 对象列表 |
DefaultApi | royalty_service_retrieve_royalty | GET /v1/royalties/{id} | 查询 Royalty 对象 |
DefaultApi | settlement_service_create_settlement_account | POST /v1/settlement_accounts | 创建结算账户 |
DefaultApi | settlement_service_delete_settlement_account | DELETE /v1/settlement_accounts/{id} | 删除结算账户 |
DefaultApi | settlement_service_list_all_settlement_accounts | GET /v1/settlement_accounts | 查询结算账户列表 |
DefaultApi | settlement_service_retrieve_settlement_account | GET /v1/settlement_accounts/{id} | 查询结算账户 |
DefaultApi | settlement_service_search_settlement_accounts | GET /v1/settlement_accounts/search | 查询结算账户列表 |
DefaultApi | settlement_service_update_settlement_account | PUT /v1/settlement_accounts/{settlementAccount.id} | 更新结算账户 |
DefaultApi | settlement_service_update_settlement_account2 | PATCH /v1/settlement_accounts/{settlementAccount.id} | 更新结算账户 |
CheckoutServiceApi | checkout_service_create_union_qr_checkout | POST /v1/checkout/union_qr | 通过聚合收款码创建订单 |
CustomerServiceApi | customer_service_create_customer | POST /v1/customers | |
CustomerServiceApi | customer_service_delete_customer | DELETE /v1/customers/{id} | |
CustomerServiceApi | customer_service_list_all_customers | GET /v1/customers | |
CustomerServiceApi | customer_service_retrieve_customer | GET /v1/customers/{id} | |
CustomerServiceApi | customer_service_search_customers | GET /v1/customers/search | |
CustomerServiceApi | customer_service_update_customer | POST /v1/customers/{id} |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。