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.1.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.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kreatornow-2.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e1aeed8e028bc4a987920f244a059806d2e7bfa0ddf0982d97fbed096317591d
MD5 600653f23533f2a6392676037cb80171
BLAKE2b-256 aebeaf0e5ffafc89a73e9582b2116cc8f10fd586e14e77d53489b1ef748ac89b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kreatornow-2.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1453829fd3f9b86cb80df3144ab3a27f403a91cf7adf644e445c4d89b42a91f7
MD5 4dd436c80e317a18b2b90dfa006459eb
BLAKE2b-256 aa384849354a54186ed7efaec2c9e02e71a49522b983091543483155573e37c9

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