by stvlynn · v0.0.1
Post, delete tweets and perform other operations via X API
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Author: Steven Lynn Version: 0.0.1 Type: tool
This plugin allows you to interact with the X (formerly Twitter) platform through their official API.
It provides tools to send and delete tweets.
git clone https://github.com/stvlynn/X-Dify-Plugin.git
cd X-Dify-Plugin
auth.py file and fill in your Consumer Key and Secret
python auth.py
{
"text": "Your tweet content here"
}
Response:
{
"status": "success",
"tweet_id": "1234567890123456789",
"text": "Your tweet content here",
"message": "Tweet published successfully with ID: 1234567890123456789"
}
{
"tweet_id": "1234567890123456789"
}
Response:
{
"status": "success",
"message": "Tweet with ID 1234567890123456789 deleted successfully"
}
This action allows you to upload and attach media (images or videos) to your tweets.
Parameters:
text: The text content of your tweet (max 280 characters)media: The media file to attach (image or video)Supported media formats:
Note: Videos may take longer to process on X platform before the tweet is published.
{
"text": "Check out this awesome media!",
"media": [Binary file data]
}
Response:
{
"status": "success",
"tweet_id": "1234567890123456789",
"text": "Check out this awesome media!",
"media_id": "9876543210987654321",
"message": "Tweet with media published successfully with ID: 1234567890123456789"
}
If you encounter any problems or have suggestions for improvements:
Please open an issue in the plugin's GitHub repository
Provide details about your problem, including error messages and steps to reproduce
Do not submit issues to the main Dify repository for plugin-specific problems