# Postman 範例

## <mark style="color:blue;">Postman 彙集與環境範例</mark>

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

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

### <mark style="color:blue;">下載</mark>

* 🔗 彙集： `[AkashicPay] SecureAPI - example.postman_collection.json`
* 🔗 環境： `Testnet-SecureAPI-Env.postman_environment.json`

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

***

### <mark style="color:blue;">如何使用</mark>

1. **安裝 Postman**
   * 從 <https://www.postman.com/downloads/> 下載並安裝 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. **開始測試**
   * 這個集合包含有占位符的範例請求，會自動使用您設定的環境變數。

***

### <mark style="color:blue;">附件檔案</mark>

1. Postman Json 彙集範例&#x20;

{% file src="<https://812529792-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSTlygtL7GMdsE7h1Lavf%2Fuploads%2FVG3V0FWfsTlYDCE20ujl%2F_AkashicPay__SecureAPI_-_example_v0.2.postman_collection.json?alt=media&token=512e097f-5c61-44a3-9fff-f53ee4a530fa>" %}

2. 測試環境範例

{% file src="<https://812529792-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSTlygtL7GMdsE7h1Lavf%2Fuploads%2FtvGmNq4qIi8AN9R7mMga%2FTestnet-SecureAPI-Env.postman_environment.json?alt=media&token=197be466-915b-4ea3-bc7a-c54945ba281d>" %}
