Metadata-Version: 2.1
Name: kreatornow
Version: 2.1.2
Summary: Kreatornow Open Service SDK
Home-page: https://open.kreatornow.com/
Author: Sans
Author-email: sans@kreator-inc.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.28.2
Requires-Dist: urllib3>=1.26.3

## Kreatornow OpenService Python SDK

### 使用说明 instructions

* 你可以通过此SDK调用内置提供的API接口，SDK将自动提供签名的处理; <br />
  You can use this SDK to call the built-in API interface, and the SDK will automatically provide signature processing.

* 只需三步！<br />
  Just three steps!

  * 第一步：引入SDK包，初始化Creator对象，传入你的appkey和appsecret 或者传入你的API ID和API Key，当使用API ID和API Key时，注意需要额外传入mode=2<br />
    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声明如下表所示，参数请参考开放平台;<br />
    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获取返回结果。<br />
    Step 3: Get the returned result by calling the object's get_result.
    ```
    # Example
    ……
    res = creator.get_result()
    ```


