tweet

package
v0.0.0-...-06b88cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

TCI Flogo twitter package is using github.com/ChimeraCoder/anaconda

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockUser

func BlockUser(consumerKey, consumerSecret, accessToken, accessTokenSecret, twitterHandle string) (statusCode int, message string)

function to Block a user on Twitter

func DirectMessage

func DirectMessage(consumerKey, consumerSecret, accessToken, accessTokenSecret, directmsg, user string) (statusCode int, message string)

function to DirectMessage an user

func Follow

func Follow(consumerKey, consumerSecret, accessToken, accessTokenSecret, twitterHandle string) (statusCode int, message string)

function to Follow a user on Twitter

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

NewActivity creates a new activity

func PostTweet

func PostTweet(consumerKey, consumerSecret, accessToken, accessTokenSecret, tweet string) (statusCode int, message string)

function to Tweet with string messages

func PostTweetMedia

func PostTweetMedia(consumerKey, consumerSecret, accessToken, accessTokenSecret, tweet string, mediaURL string) (statusCode int, message string)

function to Tweet with string messages

func ReTweet

func ReTweet(consumerKey, consumerSecret, accessToken, accessTokenSecret string, tweetId int64) (statusCode int, message string)

function to retweet a particular tweet

func UnBlockUser

func UnBlockUser(consumerKey, consumerSecret, accessToken, accessTokenSecret, twitterHandle string) (statusCode int, message string)

function to UnBlock a user on Twitter.

func UnFollow

func UnFollow(consumerKey, consumerSecret, accessToken, accessTokenSecret, twitterHandle string) (statusCode int, message string)

function to UnFollow a user on Twitter

Types

type MyActivity

type MyActivity struct {
	// contains filtered or unexported fields
}

MyActivity is a stub for your Activity implementation

func (*MyActivity) Eval

func (a *MyActivity) Eval(context activity.Context) (done bool, err error)

Eval implements activity.Activity.Eval

func (*MyActivity) Metadata

func (a *MyActivity) Metadata() *activity.Metadata

Metadata implements activity.Activity.Metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL