Skip to main content

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

kreatornow-2.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kreatornow-2.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file kreatornow-2.1.0.tar.gz.

File metadata

  • Download URL: kreatornow-2.1.0.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

Hashes for kreatornow-2.1.0.tar.gz
Algorithm Hash digest
SHA256 560a5c61bfea5976a8fc4b3f072e85aaf3d8b642ac61f2fc65c6b7f7101f480b
MD5 425e9e94ed6bf75552073ac17111bf97
BLAKE2b-256 17535070baac1703b6f45a1728a5b6ca5ddec8c17e437f6ef7470fba42b289a3

See more details on using hashes here.

File details

Details for the file kreatornow-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: kreatornow-2.1.0-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

Hashes for kreatornow-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c52027a47125e20879d1a65e3e8ea6e74b61c1d4f41736a7de54a1e13909359
MD5 a10db816a8540bfba1a861cde1e65546
BLAKE2b-256 536552a5759e7385bd29c1fdae3299c4d9558eac9fb65dc5b2f88add3e01b535

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page