twitter-flows

Crates.iotwitter-flows
lib.rstwitter-flows
version0.2.1
sourcesrc
created_at2023-02-02 08:29:41.018313
updated_at2023-03-03 08:22:43.778196
descriptionTwitter integration for flows.network
homepage
repository
max_upload_size
id774623
size4,832
DarumaDocker!! (DarumaDocker)

documentation

README

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

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.

Commit count: 0

cargo fmt