Lodol Docs

Twitter

API actions for the Twitter integration.

Twitter

Post, reply, delete, like, and search tweets on Twitter using OAuth 2.0.


Delete a tweet

Delete a tweet by ID.

Parameters

ParameterTypeRequiredDescription
tweet_idstringYesTweet ID to delete.

Response

{
  "status": "success"
}

Get my profile

Get the authenticated user's Twitter profile information.

Response

{
  "status": "success",
  "user": {
    "id": "123456789",
    "name": "Lodol Automation",
    "username": "lodol"
  }
}

Like a tweet

Like a tweet on behalf of the authenticated user.

Parameters

ParameterTypeRequiredDescription
tweet_idstringYesTweet ID to like.

Response

{
  "status": "success"
}

Post a tweet

Publish a tweet from your connected Twitter account.

Parameters

ParameterTypeRequiredDescription
textstringYesTweet text.

Response

{
  "status": "success",
  "tweet": {
    "id": "1234567890",
    "text": "Just launched our new product!"
  }
}

Reply to a tweet

Reply to an existing tweet by ID.

Parameters

ParameterTypeRequiredDescription
in_reply_to_tweet_idstringYesTweet ID to reply to.
textstringYesReply text.

Response

{
  "status": "success",
  "tweet": {
    "id": "1234567891",
    "text": "Thanks for sharing!"
  }
}

Search recent tweets

Search recent tweets using a query string.

Parameters

ParameterTypeRequiredDescription
querystringYesSearch query.
max_resultsnumberNoMaximum tweets to return (10-100, defaults to 10).

Response

{
  "status": "success",
  "tweets": [
    {
      "id": "1234567890",
      "text": "Excited about the new AI features! #technology"
    }
  ]
}

On this page