Automate a Daily Out-of-Office Tweet
Send an out-of-office message to Twitter while on vacation.
Create a function that will send a tweet.
In[1]:=
awayTweet[] :=
ServiceConnect["Twitter"]["Tweet",
"Message" -> "No new tweets for today. I am away on vacation :)"]
Create a ScheduledTask to send the tweet daily for a week and then delete itself when complete.
In[2]:=
task = CloudDeploy[
ScheduledTask[awayTweet[], {"Daily", 7}, AutoRemove -> True],
"AwayMessage"]
Execute the task to see what the results will look like.
In[3]:=
EvaluateScheduledTask[task]
Out[3]=