constructTweet: notify after

Description Usage Arguments Details Value

Description

Instead of wrapping the function call into the tweet notify call, call it after and check for any errors using geterrmessage. constructs and checks tweets

Usage

1
constructTweet(userID, jobID, jobStatus, dateString, charAllow = 140)

Arguments

userID

the userID to tweet to

jobID

text string identifying the job

jobStatus

the job status

dateString

the date string to add to the tweet

charAllow

the number of characters allowed in a tweet (currently 140)

Details

given a userID, jobID, status text and datestring, constructs a tweet where the tweet length is <= 140 characters, trimming the jobID as necessary to make everything fit.

Value

character string


rmflight/tweetJobStatus documentation built on May 27, 2019, 9:32 a.m.