> ## Documentation Index
> Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Hurl

> 使用 Hurl 測試你的 API 請求

<img className="block h-32 dark:hidden center" src="https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/hurl-light.png?fit=max&auto=format&n=Nmrhj2Gh7WSf62Bh&q=85&s=7509b92538c3e95833c782e093cf29cd" alt="Hurl Light" width="441" height="114" data-path="images/apis/hurl-light.png" />

<img className="hidden h-32 dark:block" src="https://mintcdn.com/ayrshare-docs/Nmrhj2Gh7WSf62Bh/images/apis/hurl-dark.png?fit=max&auto=format&n=Nmrhj2Gh7WSf62Bh&q=85&s=7d7791d0cd4cc7613ae0f1dc2fa3594e" alt="Hurl Dark" width="704" height="183" data-path="images/apis/hurl-dark.png" />

[Hurl](https://hurl.dev/) 是一個命令列工具，可執行以簡單純文字格式定義的 HTTP 請求。它非常適合快速測試 API 呼叫。你可以在我們的部落格上進一步了解 [如何使用 Hurl](https://www.ayrshare.com/blog/hurl-run-and-test-http-api-requests/)。

設定完成後，你可以使用這些 .hurl 檔案執行測試。

1. 使用你的 API Key 更新 var.env。
2. 如果你要測試使用者設定檔，請在請求中加入 `profileKeys`。
3. 如果你尚未連結所有社群網路，請修改 hurl 檔案。

<Card title="GitHub Hurl Scripts" icon="github" href="https://github.com/ayrshare/hurl-scripts" horizontal>
  使用 HURL 指令碼測試 Ayrshare 的社群媒體 API。包含測試發布圖片、影片
  以及取得分析。
</Card>
