特定ツイートの前後をたどるヤツがほしい
モチベ
わかる
サーベイ
使えそうなAPIを探す
references
v1
params:
since_id
max_id
count
include_rts=1
v2
params:
-
since_id
-
Returns results with a Tweet ID greater than (that is, more recent than) the specified 'since' Tweet ID. Only the 3200 most recent Tweets are available. The result will exclude the since_id. If the limit of Tweets has occurred since the since_id, the since_id will be forced to the oldest ID available.
- = ここから未来
-
-
until_id
-
Returns results with a Tweet ID less less than (that is, older than) the specified 'until' Tweet ID. Only the 3200 most recent Tweets are available. The result will exclude the until_id. If the limit of Tweets has occurred since the until_id, the until_id will be forced to the most recent ID available.
- = ここより過去
-
-
max_results
-
Specifies the number of Tweets to try and retrieve, up to a maximum of 100 per distinct request. By default, 10 results are returned if this parameter is not supplied. The minimum permitted value is 5. It is possible to receive less than the max_results per request throughout the pagination process.
-
当該tweetをカーソルに前後数個取れば良さそう
v2
まだEAらしい
OAuth 2
read only で十分
実装
Web app (SSG) を念頭に置くと、 JS 一択かな
候補
ref
Project & App
今のところ、 1アプリしかプロジェクトに属せないので、1アプリしか V2 API を使えないことになる
非同期処理は React Suspense を使いたい