Webアプリ習作#6
アプリ機能の大枠を決定
Twitter APIのElevated Access申請にあたってアプリの機能を簡単に説明する必要がある 習作目的のシンプルなものという方針から以下のように決定
- 自分のTwitterアカウントにログインして固定のメッセージをツイートする
- アプリによって生成されたツイートは一覧で表示される
- Twitterのデータ分析は特にしない
- 使用するTwitterの機能はツイートのみ、リツイート・いいね・フォロー・DM機能は使用しない
言語の壁
各項目は英語で入力する必要がある DeepL翻訳:世界一高精度な翻訳ツール
Elevated Access申請
https://developer.twitter.com/en/portal/dashboardにアクセス ProjectsのProject 1(ESSENTIAL)を選択 Apply for Elevatedを選択
(1)Basic infoを入力
What's your name? What country are you based in?
には入力済み
What's your current coding skill level?
にSome Experienceを入力
Want updates? (optional)
チェックしない Nextを選択
(2)Intended Useを入力
In English, please describe how you plan to use Twitter data and/or APIs. The more detailed the response, the easier it is to review and approve. [訳]Twitterのデータおよび/またはAPIをどのように利用する予定か、英語で記入してください。より詳細な回答があればあるほど、審査や承認が容易になります。
上記の方針に基づいて入力
Are you planning to analyze Twitter data? [訳]Twitterのデータを分析する予定はありますか?
Noを選択
Will your App use Tweet, Retweet, Like, Follow, or Direct Message functionality? [訳]ツイート、リツイート、いいね、フォロー、ダイレクトメッセージの機能を使いますか?
Yesを選択
Please describe your planned use of these features. [訳]これらの機能の予定使用について教えてください。
上記の方針に基づいて入力
Do you plan to display Tweets or aggregate data about Twitter content outside Twitter? [訳]Twitterのコンテンツに関するツイートや集計データをTwitterの外部で表示する予定はありますか?
Yesを選択
Please describe how and where Tweets and/or data about Twitter content will be displayed outside of Twitter. [訳]Twitterのコンテンツに関するツイートやデータが、Twitter以外でどのように、どこに表示されるかを説明してください。
上記の方針に基づいて入力
Will your product, service, or analysis make Twitter content or derived information available to a government entity? [訳]あなたの製品、サービス、分析によって、Twitterのコンテンツや派生する情報を政府機関が利用できるようになりますか?
Noを選択
(3)Review画面で入力項目を確認
確認したらNext
(4)Termsを確認
確認した旨をチェックしてSubmit ※申請待ち期間が発生することなく登録後に即座に申請が終了した(通知メールなども特になし)
動作確認
申請終了したらローカルサーバを起動し
http://localhost:8000/auth/twitter
にアクセス
Twitterのアプリケーション認証画面にリダイレクト→アプリに戻りログインしたユーザー情報が表示されることを確認