> ## 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.

# Postman

> Postman を使用して REST API 呼び出しをテストする

Postman は HTTP API エンドポイント呼び出しをテストするための優れたツールです。問題をより簡単に診断するため、まず Postman を使用することをお勧めします。

「Run in Postman」ボタンをクリックして、***Postman for the web でバージョンをフォーク*** してください:

[![Run in Postman](https://run.pstmn.io/button.svg)](https://god.gw.postman.com/run-collection/7602335-776bf0f9-c710-43cf-b3a2-7987801887f3?action=collection%2Ffork\&collection-url=entityId%3D7602335-776bf0f9-c710-43cf-b3a2-7987801887f3%26entityType%3Dcollection%26workspaceId%3Dcf2bf012-ff59-48a6-ba37-cf4864d2e43c)

フォーク後、[Postman を無料でダウンロード](https://www.postman.com/downloads/) してローカルで使用することをお勧めします。
デスクトップバージョンはより信頼性が高く、機能が豊富です。

<Info>
  `Authorization: Bearer API_Key` の値または Profile Key をヘッダーに必ず設定してください。

  また、\{API\_Key} の環境変数を API\_KEY で設定してください。
</Info>

<Tip>
  **Postman のヒント**

  <ul class="custom-bullets">
    <li>API\_KEY のようなグローバル変数などの変数値を追加すると、Postman で API 呼び出しを行いやすくなります。[この方法の詳細](https://learning.postman.com/docs/sending-requests/variables/variables/) については Postman のサイトを参照してください。</li>
    <li>Postman の body を x-www-form-urlencoded に設定した状態で、キーに \[0] の値を設定することで、配列を変数として送信できます。たとえば、投稿を送信するには、キー platforms\[0] を最初の値に、platforms\[1] を 2 番目の値に設定できます。</li>
  </ul>
</Tip>

## ランダムなテキストと画像でテストする

ソーシャルネットワークによってアカウントがロックされないように、[ランダムなテキストと画像](/quickstart#publish-test-posts) でテストすることもお勧めします。

## Postman で API コードを自動生成する

Postman から Node.js、PHP、Python、C# などのほとんどのプログラミング言語で、コードを直接自動生成することもできます。Postman の使用方法とコード生成の詳細については、動画を参照してください。

<div class="video-container">
  <iframe width="560" height="330" src="https://www.youtube.com/embed/T-ui_z2oyAU" title="Postman Auto Generate API Code" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />
</div>
