Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

[ Image Removed |../../../index.htm#lansa/webserviceseng01_0120.htm]
現在地: Webサービス > Webサービスの利用 > チュートリアル 1 - Google 翻訳 API > HTTP 要求の構成

...

translate メソッドについては、Google のリファレンス・ガイドを参照してください。

{+}https://cloud.google.com/translate/docs/reference/translate+Image Removed

この要求は、複数のクエリ文字列パラメータを持つ簡単な POST です。

  • q: 翻訳したい入力テキスト
  • source: 入力テキストの言語 (例 英語は en)
  • target: テキストを翻訳したい言語 (例 日本語は ja)
  • format: 入力テキストの形式 (プレーンテキストは "text"、HTML は "html")
  • key: 前回の手順で生成した自身の API キー

次は: Postman を利用して HTTP 要求をテスト
[ Image Removed |../../../index.htm#lansa/webserviceseng01_0120.htm]