teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

2

整形

2020/07/26 22:55

投稿

quickquip
quickquip

スコア11314

answer CHANGED
@@ -1,6 +1,8 @@
1
+ 例えばこの辺りのAPI
2
+
1
3
  [https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-show](https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-show)
2
4
 
3
- 例えばこの辺りのAPIで返ってくる
5
+ で返ってくる
4
6
 
5
7
  [https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/user-object](https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/user-object)
6
8
 

1

追記

2020/07/26 22:55

投稿

quickquip
quickquip

スコア11314

answer CHANGED
@@ -4,4 +4,8 @@
4
4
 
5
5
  [https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/user-object](https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/user-object)
6
6
 
7
- の形をしたUser Objectや、ツイートを取得した時に入っているUser Objectを見て、その`id_str`要素を調べてください。
7
+ の形をしたUser Objectや、ツイートを取得した時に入っているUser Objectを見て、その`id_str`要素を調べてください。
8
+
9
+
10
+ ----
11
+ メッセージの`'hogehoge' is not a valid Long`は、"IDの長さが有効ではない"ではなくて、"IDがlong型(=多倍長整数≒Javascriptの範囲を超える整数型)**じゃない**"という意味です。