Skip to main content

Twitter Receipe

  • Official Website: https://twitter.com/
  • Icon Support: No
  • Message Format: Text
  • Message Limit: 10000 Characters per message if a private DM otherwise public tweets are limited to 280 character.

Account Setup

Twitter Direct Messages are slightly more complicated then some of the other notification services, so here is quick breakdown of what you need to know and do in order to send Notifications through it using this tool:

  1. First off, you need to generate a Twitter App from apps.twiter.com. It's through a Twitter App we will be able to send our DMs.
  2. Once you create the app, you'll need to generate the Access Tokens. This Is done from the "Keys and Access Tokens" Tab.

You should now have 4 Tokens to work with at this point on this same page.

  • A Consumer Key
  • A Consumer Secret
  • An Access Token
  • An Access Token Secret

From here you're ready to go. You can post public tweets or simply create DMs through the use of the mode= variable. By default Direct Messaging (DM) is used.

Receipe

Valid receipes are as follows:

  • twitter://{ConsumerKey}/{ConsumerSecret}/{AccessToken}/{AccessSecret}
  • twitter://{ScreenName}@{ConsumerKey}/{ConsumerSecret}/{AccessToken}/{AccessSecret}
  • twitter://{ConsumerKey}/{ConsumerSecret}/{AccessToken}/{AccessSecret}/{ScreenName1}/{ScreenName2}/{ScreenNameN}

Note If no ScreenName is specified, then by default the Direct Message is sent to your own account.

A Public tweet can be referenced like so:

  • twitter://{ConsumerKey}/{ConsumerSecret}/{AccessToken}/{AccessSecret}?mode=tweet

Parameter Breakdown

VariableRequiredDescription
ScreenNameYesThe UserID of your account such as l2gnux (if your id is @l2gnux). You must specify a {userid} or an {ownerid}.
ConsumerKeyYesThe Consumer Key
ConsumerSecretYesThe Consumer Secret Key
AccessTokenYesThe Access Token; you would have had to generate this one from your Twitter App Configuration.
AccessSecretYesThe Access Secret; you would have had to generate this one from your Twitter App Configuration.
ModeNoThis the the Twitter mode you want to operate in. Possible values are dm (for Private Direct Messages) and tweet to make a public post. By default this is set to dm