Kreatornow Open Service SDK
Project description
Kreatornow OpenService Python SDK
使用说明 instructions
-
你可以通过此SDK调用内置提供的API接口,SDK将自动提供签名的处理;
You can use this SDK to call the built-in API interface, and the SDK will automatically provide signature processing. -
只需三步!
Just three steps!-
第一步:引入SDK包,初始化Creator对象,传入你的appkey和appsecret 或者传入你的API ID和API Key,当使用API ID和API Key时,注意需要额外传入mode=2
Step 1: Import the SDK package, initialize the Creator object, and pass in your appkey and appsecret or your API ID and API Key.When you use API ID and API Key, you need to additionally pass in mode=2;# Example A import kreatornow creator = kreatornow.Creator('your appkey', 'your appsecret') # Example B import kreatornow creator = kreatornow.Creator('your API ID', 'your API Key', 2) -
第二步:准备好API调用的参数dict,调用对象中的send_client,传入你选择调用的API SERV_NAME及API参数,API声明如下表所示,参数请参考开放平台;
Step 2: Prepare the parameters dict for the API call, call send_client in the object, pass in the API SERV_NAME and API parameters you choose to call.The API Statementis shown in the table below, request params please refer to the open platform.SERV_NAME Service get_ads cps-mesh.open.stores.plans.get get_link cps-mesh.cpslink.links.post get_orders cps-mesh.open.orders.query.get get_order_detail cps-mesh.open.orders.detail.get get_settlement cps-mesh.open.orders.settlement.get get_rakuten_ip_check kreatornow.open.rakuten.order-check.get # Example …… creator.send_client(kreatornow.get_ads, {"page": 1, "page_size": 10}) ## {"page": 1, "page_size": 10} is request params can be replaced,refer to the open platform. -
第三步:通过调用对象的get_result获取返回结果。
Step 3: Get the returned result by calling the object's get_result.# Example …… res = creator.get_result()
-
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
Built Distribution
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 kreatornow-2.1.2.tar.gz.
File metadata
- Download URL: kreatornow-2.1.2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44176c6f2077ca33807674a83075e3287cd95f61e84ea482435bd6a9f85cf398
|
|
| MD5 |
b0d91553199958b3370725f236ddebdc
|
|
| BLAKE2b-256 |
c60f6f4bf2e8914a8b1b75d6fab81e0192f6a4c26f8d611f47e2f795b242b75c
|
File details
Details for the file kreatornow-2.1.2-py3-none-any.whl.
File metadata
- Download URL: kreatornow-2.1.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
163f4a210e4f1891c94afc088109ae416663a05586450f6bb148e26914203f73
|
|
| MD5 |
16f150e6ee62e2bab7cb4e3704322285
|
|
| BLAKE2b-256 |
1b076fdfbcdd3a0681ab3da52db490838334275ce64a9c2587465bbfd2138dea
|