Crate twitter_flows

source ·
Expand description

Twitter integration for

Quick Start

To get started, let’s write a very tiny flow function.

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

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

When the Slack message is received, create a new tweet in Twitter using create_tweet.