> ## 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 脚本" icon="github" href="https://github.com/ayrshare/hurl-scripts" horizontal>
  使用 HURL 脚本测试 Ayrshare 的社交媒体 API，包括测试发布图片、视频和获取分析。
</Card>
