跳至主要内容

Postman 範例

Postman 彙集與環境範例

為了幫助您快速測試 AkashicPay SecureAPI,我們提供可下載的 Postman 彙集與環境範例檔案。

這些檔案是有版本的 - 目前的版本是 v0.2

下載

  • 🔗 彙集: [AkashicPay] SecureAPI - example.postman_collection.json
  • 🔗 環境: Testnet-SecureAPI-Env.postman_environment.json

請務必使用您的實際下載連結取代上述 URL。


如何使用

  1. 安裝 Postman
  2. 匯入匯集
    • 開啟 Postman 並按一下左上方的 Import
    • 上傳檔案:
      [AkashicPay] SecureAPI - example.postman_collection.json
  3. 匯入環境
    • 對檔案重複相同的程序:
      Testnet-SecureAPI-Env.postman_environment.json
    • 匯入後,從 Postman 右上角的下拉式選單中選擇環境。
  4. 設定所需變數
    • 環境檔案包含下列變數:

      • IP:測試環境 API 的基本 URL (例如 testnet: 34.87.94.182)
      • L2Address: 您的第 2 層地址 - 用您收到的地址取代
      • PrivateKey: 您的密鑰對 - 請用與您 L2Address 相關的密鑰對取代

      請務必妥善保管您的密鑰對。請勿公開分享。

  5. 開始測試
    • 這個集合包含有占位符的範例請求,會自動使用您設定的環境變數。

附件檔案

  1. Postman Json 彙集範例

    🗂️
    AkashicPay__SecureAPI-_example_v0.2.postman_collection.json
    JSON
    ⬇ 下載
  2. 測試環境範例

    🗂️
    Testnet-SecureAPI-Env.postman_environment.json
    JSON
    ⬇ 下載