文書の過去の版を表示しています。
181026 ionic4でdialogflowV2にtryしてみる
目次
2018年10月現在、Ionic4でDialogflowV1は、以下のソースコードで動く。
https://github.com/adash333/ionic4-dialogflowV1
Dialogflow V1が、2019年10月に終了してしまうというアナウンスが出てきたので、これを、V2に変更できないかtryしてみる。
Dialogflow V2 APIのAuth(認証)のセットアップ
V1よりかなり難しそう。
In order to use the V2 API, you will need to create a new Service Account and obtain a private key associated with the Service Account. The key is downloaded as a JSON file upon creation of the Service Account.
らしい。
https://dialogflow.com/docs/reference/v2-auth-setup
https://qiita.com/tayack/items/6f0d76c980200be10c85
@tayack
2018年09月25日に投稿
DialogFlow v2 APIの使い方1 API実行に必要なアクセストークンをコマンドプロンプトで取得する方法
ところが、私の場合、Service Account のメールアドレスのリンクをクリックしても、リンク先で、
「このプロジェクトのサービス アカウントを表示する権限がありません。」
と表示されてしまい、先に進めない。
数時間後、なぜか、進めるようになった。
参考
写経元サイト