-
-
Notifications
You must be signed in to change notification settings - Fork 433
Notify_twitter
lead2gold edited this page Mar 13, 2018
·
14 revisions
- Source: https://twitter.com/
- Icon Support: No
- Message Format: Text
- Message Limit: 4096 Characters per message
Twitter Direct Messages (DM) 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:
- 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.
- 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
You will also need to your UserID (or Owner ID) which is accessible from the same screen
Valid syntaxes are as follows:
- tweet://{userid}@{ConsumerKey}/{ConsumerSecret}/{AccessToken}/{AccessSecret}
- tweet://{ownerid}@{ConsumerKey}/{ConsumerSecret}/{AccessToken}/{AccessSecret}
Variable | Required | Description |
---|---|---|
userid | Yes | The UserID of your account such as l2gnux (if your id is @l2gnux). You must specify a {userid} or an {ownerid}. |
owerid | Yes | The OwnerID can be retrieved from your Twitter App Configuration |
ConsumerKey | Yes | The Consumer Key |
ConsumerSecret | Yes | The Consumer Secret Key |
AccessToken | Yes | The Access Token; you would have had to generate this one from your Twitter App Configuration. |
AccessSecret | Yes | The Access Secret; you would have had to generate this one from your Twitter App Configuration. |
Send a slack notification to our channel #nuxref:
# Assuming our {ConsumerKey} is T1JJ3T3L2
# Assuming our {ConsumerSecret} is A1BRTD4JD
# Assuming our {AccessToken} is TIiajkdnlazkcOXrIdevi7F
# Assuming our {AccessSecret} is FDVJaj4jcl8chG3
# our user is @testaccount
apprise tweet://testaccount@T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcOXrIdevi7F/FDVJaj4jcl8chG3