node-red-contrib-sendit
v1.1.0
Published
Node-RED nodes for SendIt - Multi-platform social media publishing
Maintainers
Readme
SendIt Node-RED Integration
Node-RED nodes for multi-platform social media publishing via SendIt.
Installation
cd ~/.node-red
npm install node-red-contrib-senditOr install via the Node-RED Palette Manager:
- Open Node-RED settings
- Go to "Manage palette"
- Search for "node-red-contrib-sendit"
- Click Install
Nodes
sendit-config
Configuration node for storing API credentials.
sendit-publish
Publishes content immediately to selected platforms.
Inputs:
msg.payload- Text content (string) or object withtextandmediaUrlmsg.platforms- Override configured platforms (optional)
Outputs:
msg.payload- API response with results and errors
sendit-schedule
Schedules content for future publishing.
Inputs:
msg.payload.text- The text contentmsg.payload.mediaUrl- Optional media URLmsg.payload.scheduledTime- ISO 8601 datetimemsg.platforms- Override configured platforms (optional)
Outputs:
msg.payload- API response with scheduleId
sendit-accounts
Lists connected social media accounts.
Outputs:
msg.payload.accounts- Array of connected accounts
sendit-webhook
Receives webhook events from SendIt.
Setup:
- Deploy the node to get the webhook URL
- Register the URL in SendIt (Dashboard or API)
- Configure the webhook secret for signature verification
Outputs:
msg.payload- Event datamsg.event- Event type (e.g., "post.published")msg.deliveryId- Unique delivery IDmsg.timestamp- Event timestamp
Supported Platforms
- Instagram (Business/Creator accounts)
- Threads
- TikTok
- X (Twitter)
Example Flows
Simple Publish Flow
[
{
"id": "inject1",
"type": "inject",
"payload": "Hello from Node-RED!",
"wires": [["publish1"]]
},
{
"id": "publish1",
"type": "sendit-publish",
"platforms": ["linkedin"],
"wires": [["debug1"]]
},
{
"id": "debug1",
"type": "debug"
}
]RSS to Social Media
[
{
"id": "rss1",
"type": "feedparse",
"url": "https://example.com/feed.xml",
"wires": [["function1"]]
},
{
"id": "function1",
"type": "function",
"func": "msg.payload = { text: msg.title + '\\n\\n' + msg.link };\\nreturn msg;",
"wires": [["publish1"]]
},
{
"id": "publish1",
"type": "sendit-publish",
"platforms": ["linkedin", "twitter"],
"wires": [["debug1"]]
}
]Webhook to Slack
[
{
"id": "webhook1",
"type": "sendit-webhook",
"events": ["post.published"],
"wires": [["function1"]]
},
{
"id": "function1",
"type": "function",
"func": "msg.payload = 'Post published to ' + msg.payload.platform;\\nreturn msg;",
"wires": [["slack1"]]
},
{
"id": "slack1",
"type": "slack-webhook",
"wires": []
}
]Configuration
API Key
Get your API key from the SendIt Dashboard.
Base URL
Default: https://sendit.infiniteappsai.com/api/v1
Development
# Clone the repository
git clone https://github.com/infiniteappsai/sendit
cd sendit/integrations/node-red
# Install dependencies
npm install
# Link for local development
npm link
cd ~/.node-red
npm link node-red-contrib-sendit
# Restart Node-REDSupport
- Documentation: https://sendit.infiniteappsai.com/docs
- Issues: https://github.com/infiniteappsai/sendit/issues
- Email: [email protected]
License
MIT
