Skip to main content
POST
/
twitter_timeline
Fetch Twitter timeline data
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/twitter_timeline \
  --header 'Content-Type: application/json' \
  --data '
{
  "twitter_id": "123456789",
  "pagination_token": "next_token_abc"
}
'
{
  "data": []
}

Body

application/json
twitter_id
string

Twitter numeric user ID (NOT username)

Example:

"123456789"

pagination_token
string | null

Cursor token for next page of tweets

Example:

"next_token_abc"

Response

200 - application/json

Twitter timeline data (passthrough from Twitter API)

data
object[]
Example:
[]