BREAKING NEWS

2018/09/04

Twitter APIを使用するためにTwitter Developer Accountの申請を行ってみた

この記事のまとめ:
  • TwitterのAPIの使用条件が2018年7月末に変更されてから、APIを使用するための申請が厳しくなっております。私も申請してみてとりあえず承認されましたので、私なりの承認されるためのポイントをまとめました。
背景

新たにTwitter APIを使ったアプリケーション開発をしたかったのですが、Twitter Developerを開いて見るとTwitter APIを使うためにはアプリケーションの認証が必要になっていました※。申請してから何度かやり取りをして無事に承認を得られましたので私なりのポイントをお伝えします。

※後で調べてみると2018年7月24日(現地時間)にAPIの使用条件が変更されたようです。

使用条件

ITmedia NEWSに概要がまとめられておりますのでそちらを参考にされた方がよさそうです。

こちらにも記載されていますが、英語が多少読み書きできないと申請すら厳しいです。

申請方法

Qiitaで申請の手順について和訳含めてまとめてありますので、戸惑った方はこちらを参考にしてください。

一番厄介な説明分について

一番厄介なのはTwitter APIを使ってこれから作るものについて説明を英語で300文字以上で書かなければなりません。何を説明するかについては下記に記載されています。

Describe in your own words what you are building In English, please describe your product - the more detailed the response, the easier it is to review and approve. Be sure to answer the following:

  • What is the purpose of your product or service?
  • What will you deliver to your users/customers?
  • How do you intend to analyze Tweets, Twitter users, or their content?
  • How is Twitter data displayed to users of your end product or service (e.g. will Tweets and content be desplayed at row level or in aggregate)?

なんとなく説明を書いて提出したら、メールでレビュー結果が来ました。しかし、情報が十分じゃないと言われ、追加情報をメールで返信せよとのこと。これを3往復くらいしました。その中で上記の4点についてどういうポイントで追加情報がほしいのかを下記のように説明してくれました。

  • The core use case, intent, or business purpose for your use of the Twitter APIs
    • Note that “business purpose” in this context includes uses not necessarily connected to a commercial business. We require information about the problem, user story, or overall goal your use of Twitter content is intended to address.
    • If you are a student, learning to code, or just getting started with the Twitter APIs, please provide details about potential projects or areas of focus.
  • If you intend to analyze Tweets, Twitter users, or their content, share details about the analyses you plan to conduct and the methods or techniques
    • Note that “analyze” in this context includes any form of processing performed on Twitter content. Please provide as detailed and exhaustive an explanation as possible of your intended use case.
  • If your use involves Tweeting, Retweeting, or liking content, share how you will interact with Twitter users or their content.
  • If you’ll display Twitter content off of Twitter, explain how and where Tweets and Twitter content will be displayed to users of your product or service, including whether Tweets and Twitter content will be displayed at row level or aggregated
    • Where possible, please share links to illustrations and/or sample work products. Note that we can’t view attachments.

最終的に申請が通ったときの回答を振り返ると、聞かれていることに対してだけ明確に答えていれば、たぶん問題なさそうです。

つまり下記に改めてまとめますが、はじめに書いてあった4点とあとで加えられた1点です。

  • What is the purpose of your product or service?
  • What will you deliver to your users/customers?
  • How do you intend to analyze Tweets, Twitter users, or their content?
  • How is Twitter data displayed to users of your end product or service (e.g. will Tweets and content be desplayed at row level or in aggregate)?
  • If your use involves Tweeting, Retweeting, or liking content, share how you will interact with Twitter users or their content.

今回は単純にツイートするだけのアプリケーションを作る予定だったので、上記の5つの内、下の3つは使用する予定がなかったので、明確に" その目的でAPIを使わない "と回答しました。 あとは上の2つの観点のみ、どういう目的で、どのAPIだけを使うのか、ついでにどういうツイートを行う予定なのかサンプルも用意して説明しました。

はじめは趣味でやっているものなので適当に目的とかを書いて、もしかしたらこういう使い方もするかも、的なことを書いたりもしたのですが、上記の補足もありますが、商用ビジネスに関連しない使用であったとしても、どういう意図でAPIやTwitterのコンテンツを使いたいのか明確にしろと書いてありますので、その点の明確な情報がほしいということですね。下手にあいまいなことを書くと即却下って感じな気がしました。

申請から承認までの期間
  • 8/14 申請
  • 8/31 Twitterからの1回目の返信

~あいだ3回やり取り~

  • 9/4 承認

はじめの申請からはしばらくキューに入ってしまうようですが、そのあとは太平洋時間の日勤帯の時間であれば遅くとも1時間以内にすぐに返信が来ました(早い時は5分後に返信!)。

そんなわけでTwitterも世知辛くなってしまっていますが、それもすべてスパムのせいですので、これを見られた方は清く正しくAPIを使いましょう。


今回は以上です。 最後まで読んでいただき、ありがとうございます。


Share this:

 
Copyright © 2014 hassiweb. Designed by OddThemes