On this page
REST APIをmod_rewriteなしで使用する
Apacheでmod_rewriteをサポートしていない環境(または同等の機能がない環境)でも、LiveAgent APIを利用することができます。呼び出しURLを少し変更するだけで対応できます。
以下は、mod_rewriteをサポートしている場合の通常のAPI URL呼び出しの例です:
https://example.com/api/conversations/[conversationid]/messages?apikey=key123456
そして、mod_rewriteをサポートしていない場合は次のようになります:
URL_To_LiveAgent/api/index.php?handler=conversations/[conversationid]/messages&apikey=key123456
特定のAPIハンドラーファイルを指定し:
https://example.com/api/index.php
ハンドラー文字列とAPIキーを付加します:
handler=conversations/[conversationid]/messages?apikey=key123456
別の例として:
- 部門のすべての会話を取得したい場合は、次のようにします:
URL_To_LiveAgent/api/index.php?handler=conversations&department=[departmentid]&apikey=key123456