ionic4とdialogflow_v1_でチャットボットアプリ
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
ionic4とdialogflow_v1_でチャットボットアプリ [2018/10/25] – [@angular/http の HttpModule から、 @angular/common/http の HttpClientModuleへ] adash333 | ionic4とdialogflow_v1_でチャットボットアプリ [2018/10/28] (現在) – [Dialogflow V2 APIのAuth(認証)のセットアップ] adash333 | ||
---|---|---|---|
行 29: | 行 29: | ||
//変更後 | //変更後 | ||
- | app.module.ts | ||
import { HttpClientModule } from ' | import { HttpClientModule } from ' | ||
行 44: | 行 43: | ||
//変更後 | //変更後 | ||
+ | import { HttpClient } from ' | ||
+ | |||
+ | constructor(private http: HttpClient) { } | ||
</ | </ | ||
+ | 参考 | ||
+ | https:// | ||
+ | @C3REVE | ||
+ | 2018年10月16日に更新 | ||
+ | 第2回 Angular勉強会 〜楽曲検索アプリ作成〜 | ||
+ | |||
+ | https:// | ||
+ | @ponday | ||
+ | 2017年10月04日に更新 | ||
+ | Angular 4.3で追加されたHttpClientModuleについてのメモ | ||
+ | |||
+ | http:// | ||
+ | |||
+ | |||
+ | |||
+ | https:// | ||
+ | Angular 4.3 HttpClient (Accessing REST Web Services With Angular) - Medium | ||
+ | |||
+ | 公式サイト | ||
+ | https:// | ||
+ | |||
+ | ===== DialogflowV1とV2 ===== | ||
+ | |||
+ | response | ||
+ | |||
+ | https:// | ||
+ | {{: | ||
+ | |||
+ | https:// | ||
+ | {{: | ||
+ | |||
+ | https:// | ||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 上記より、以下のように変更で正しいのだろうか・・・ | ||
+ | |||
+ | < | ||
+ | //V1 | ||
+ | res.result.fulfillment.speech | ||
+ | |||
+ | //V2 | ||
+ | res.queryResult.fulfillmentText | ||
+ | </ | ||
+ | |||
+ | しかし、以下のページでは、fulfillment.text のよう。 | ||
+ | |||
+ | https:// | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Dialogflow V2 APIのセットアップ ===== | ||
+ | https:// | ||
+ | |||
+ | |||
+ | |||
+ | https:// | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== 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:// | ||
+ | |||
+ | https:// | ||
+ | @tayack | ||
+ | 2018年09月25日に投稿 | ||
+ | DialogFlow v2 APIの使い方1 API実行に必要なアクセストークンをコマンドプロンプトで取得する方法 | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ところが、私の場合、Service Account のメールアドレスのリンクをクリックしても、リンク先で、 | ||
+ | |||
+ | 「このプロジェクトのサービス アカウントを表示する権限がありません。」 | ||
+ | |||
+ | と表示されてしまい、先に進めない。 | ||
+ | |||
+ | 数時間後、なぜか、進めるようになった。 | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 続きは[[[z_blog: | ||
+ | |||
+ | ===== 参考リンク ===== | ||
+ | |||
+ | |||
+ | http:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | https:// | ||
ionic4とdialogflow_v1_でチャットボットアプリ.1540468273.txt.gz · 最終更新: 2018/10/25 by adash333