提供: Bright Pattern Documentation
(Created page with "=Twitter Webhookの手動設定y= 万が一、Twitter webhook をコンタクトセンター管理者アプリ...") |
(Created page with "#twurlアプリケーションをダウンロードします。手順については次のリンクをクリックします: https://developer.twitter.com/en/docs/tutorials/us...") |
||
Line 2: | Line 2: | ||
万が一、[[Twitter-integration-guide/Configuration/IntegrationAccount|Twitter webhook]] をコンタクトセンター管理者アプリケーションの統合アカウントで設定できない場合 (つまり、 Twitterの認証情報は承認されるが、webhookを設定するときに認証エラーが発生する場合)、以下の手動手順に従ってください。その後、 [https://www.brightpattern.com/contact-center-support/ サポート]サービスにお問い合わせください。 | 万が一、[[Twitter-integration-guide/Configuration/IntegrationAccount|Twitter webhook]] をコンタクトセンター管理者アプリケーションの統合アカウントで設定できない場合 (つまり、 Twitterの認証情報は承認されるが、webhookを設定するときに認証エラーが発生する場合)、以下の手動手順に従ってください。その後、 [https://www.brightpattern.com/contact-center-support/ サポート]サービスにお問い合わせください。 | ||
− | # | + | #twurlアプリケーションをダウンロードします。手順については次のリンクをクリックします: https://developer.twitter.com/en/docs/tutorials/using-twurl<br><br> |
− | # | + | #.twurlrcファイルで次の認証情報を設定します。トークンは、Twitter統合アカウントのコンタクトセンター管理者アプリケーションで入力したトークンと一致しなければなりません:<br><br> |
− | #: | + | #:Windowsのパス: '''Users/<windows username>/.twurlrc''' |
− | #: | + | #:Linuxのパス: '''~/.twurlrc''' |
− | # ( | + | # (オプション)次のコマンドを使って twurlが.twurlrcファイルを正しく読み取ることを確認します: '''twurl accounts'''<br><br> |
− | #: | + | #:例:<br><br> |
#:''C:\Users\Edmund>twurl accounts'' | #:''C:\Users\Edmund>twurl accounts'' | ||
#:''<twitter-user-name>'' | #:''<twitter-user-name>'' | ||
#: ''SB64DimDrkcE4m85yIfz23g3C (default)'' | #: ''SB64DimDrkcE4m85yIfz23g3C (default)'' | ||
− | # | + | # 次のコマンドを使って webhookを設定します: '''<env_name>''', '''<tenant host name>''', '''<access token secret>''' を正しい値に変更します。. There is no need to URL encode the URL parameter (i.e., twurl does it automatically):<br><br> |
#:''twurl -X POST "/1.1/account_activity/all/<env_name>/webhooks.json?url=https://<tenant host name>/clientweb/twitter/webhook/<access token secret>"''<br><br> | #:''twurl -X POST "/1.1/account_activity/all/<env_name>/webhooks.json?url=https://<tenant host name>/clientweb/twitter/webhook/<access token secret>"''<br><br> | ||
#:Note: If you are successful, you will receive a 2xx HTTP response status code. | #:Note: If you are successful, you will receive a 2xx HTTP response status code. |
Revision as of 04:40, 14 June 2020
• English
Twitter Webhookの手動設定y
万が一、Twitter webhook をコンタクトセンター管理者アプリケーションの統合アカウントで設定できない場合 (つまり、 Twitterの認証情報は承認されるが、webhookを設定するときに認証エラーが発生する場合)、以下の手動手順に従ってください。その後、 サポートサービスにお問い合わせください。
- twurlアプリケーションをダウンロードします。手順については次のリンクをクリックします: https://developer.twitter.com/en/docs/tutorials/using-twurl
- .twurlrcファイルで次の認証情報を設定します。トークンは、Twitter統合アカウントのコンタクトセンター管理者アプリケーションで入力したトークンと一致しなければなりません:
- Windowsのパス: Users/<windows username>/.twurlrc
- Linuxのパス: ~/.twurlrc
- (オプション)次のコマンドを使って twurlが.twurlrcファイルを正しく読み取ることを確認します: twurl accounts
- 例:
- C:\Users\Edmund>twurl accounts
- <twitter-user-name>
- SB64DimDrkcE4m85yIfz23g3C (default)
- 例:
- 次のコマンドを使って webhookを設定します: <env_name>, <tenant host name>, <access token secret> を正しい値に変更します。. There is no need to URL encode the URL parameter (i.e., twurl does it automatically):
- twurl -X POST "/1.1/account_activity/all/<env_name>/webhooks.json?url=https://<tenant host name>/clientweb/twitter/webhook/<access token secret>"
- Note: If you are successful, you will receive a 2xx HTTP response status code.
- twurl -X POST "/1.1/account_activity/all/<env_name>/webhooks.json?url=https://<tenant host name>/clientweb/twitter/webhook/<access token secret>"
- In the Contact Center Administrator, section Integration Accounts, click your Twitter integration's Set Webhook button again using the same credentials. This time, the "Could not authenticate you" error should be gone (i.e., if this is the same issue that was originally noted).
Example .twurlrc:
--- profiles: edmundwongbp: SB64DimDrkcE4m85yIfz23g3C: username: edmundwongbp consumer_key: SB64DimDrkcE4m85yIfz23g3C consumer_secret: ddss token: dss secret: 7xxx configuration: default_profile: - edmundwongbp
- SB64DimDrkcE4m85yIfz23g3C