Sign inSign up

vorteil/tweet

By vorteil

Updated about 5 years ago

Image
0

1.3K

vorteil/tweet repository overview

Tweet

Tweets a message to a twitter account.

Direktiv

An example workflow of using the container on Direktiv

id: tweet-message
function: 
- id: tweet
  image: vorteil/tweet:v2
description: "Tweet a message"
states:
- id: postATweet
  type: action
  action:
    function: tweet
    input: jq(.)

Input

The input needed to run the above workflow properly is the following:

input:
  consumerKey: jq(.secrets.CONSUMER_KEY)
  consumerSecret: jq(.secrets.CONSUMER_SECRET)
  tokenKey: jq(.secrets.TOKEN_KEY)
  tokenSecret: jq(.secrets.TOKEN_SECRET)
  message: "This is getting tweeted :)"

To obtain a consumer key and secret you need a Twitter developer account which can be found here. You can also generate your token key and secret when you create your application on the Twitter development account. Make sure you provide the account with read and write.

Output

If the action is successful, the tweet should appear on the account with the given credentials.

Error

In the case that an error is encountered, it will present in the following format:

{
    "errorCode": "com.tweet.error",
    "errorMsg": "Something went wrong"
}

Tag summary

Content type

Image

Digest

Size

2.3 MB

Last updated

about 5 years ago

docker pull vorteil/tweet