Narzędzia: https://www.postman.com
Wywołanie podstawowe REST:
https://api.twitter.com/2/tweets/search/recent?query=# export BEARER_TOKEN="ABCgsdfd6ghssSA...."
# curl --request GET 'https://api.twitter.com/2/tweets/search/recent?query=from:DUALIPA' --header "Authorization: Bearer $BEARER_TOKEN"
# curl --request GET --url 'https://api.twitter.com/2/tweets/search/recent?query=from%3Apiotrostapowicz' --header "Authorization: Bearer $BEARER_TOKEN" %3A = :
https://api.twitter.com/2/tweets?ids=1228393702244134912,1227640996038684673,1199786642791452673&tweet.fields=created_at&expansions=author_id&user.fields=created_at
{ "data": [ { "author_id": "2244994945", "created_at": "2020-02-14T19:00:55.000Z", "id": "1228393702244134912", "text": "What did the developer write in their Valentine’s card?\n \nwhile(true) {\n I = Love(You); \n}" }, { "author_id": "2244994945", "created_at": "2020-02-12T17:09:56.000Z", "id": "1227640996038684673", "text": "Doctors: Googling stuff online does not make you a doctor\n\nDevelopers: https://t.co/mrju5ypPkb" }, { "author_id": "2244994945", "created_at": "2019-11-27T20:26:41.000Z", "id": "1199786642791452673", "text": "C#" } ], "includes": { "users": [ { "created_at": "2013-12-14T04:35:55.000Z", "id": "2244994945", "name": "Twitter Dev", "username": "TwitterDev" } ] } }