Twitter icon
Twitter
Doc

This is a library for integrating Twitter in your flow function for flows.network.

Authorization

Click the link below to connect Flows.network with your Twitter account.

Connect with Twitter

Usage example

use twitter_flows::create_tweet;
use slack_flows::{channel_msg_received};

#[no_mangle]
pub fn run() {
    if let Some(sm) = channel_msg_received("myworkspace", "mychannel") {
        let tweet = serde_json::json!({
            "text": sm.text,
        });
        create_tweet(tweet);
    }
}

When a new message is received from mychannel, we will create a new tweet in Twitter using create_tweet.

The whole document is here.