Lodol Docs

Twitter

API actions for the Twitter integration.

Twitter

Post, reply to, delete, like, and search tweets on your Twitter account.


Delete a tweet

Delete a tweet from your Twitter account.

Parameters

ParameterTypeRequiredDescription
tweet_idstringYesTweet ID to delete.

Response

{
  "status": "success"
}

Get my profile

Get the profile details for your connected Twitter account.

Response

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

Like a tweet

Like a tweet from your connected Twitter account.

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.

Parameters

ParameterTypeRequiredDescription
in_reply_to_tweet_idstringYesThe ID of the tweet you want to reply to.
textstringYesReply text.

Response

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

Search recent tweets

Search recent tweets for a word, phrase, or hashtag.

Parameters

ParameterTypeRequiredDescription
querystringYesWhat to search for, such as a word, phrase, or hashtag.
max_resultsnumberNoThe most tweets to return, between 10 and 100. Defaults to 10.

Response

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

On this page