Installation
- Register at https://developer.twitter.com. Make sure to verify your phone at https://twitter.com/settings/phone, or the registration will fail.
- Create your first app by entering the app name, and click
get keys
, copyAPI Key (Consumer key)
andAPI Key Secret (Consumer secret)
and paste them intoAiX > Settings > Twitter
. - Request the Elevated access from https://developer.twitter.com/en/portal/products/elevated. Click
Apply for Elevated
and complete the form as follow: In the first area,In your words
,Will your app use Tweet, Retweet, Like, Follow, or Direct Message functionality?
EnterI need access to the Account Activity API to start receiving Twitter Direct Messages to my chat software(aix.RPAiX) and to reply to them directly from aix.RPAiX; details are at https://aix.rpaix.com/twitter.
Disable all the other fields by clicking No: Are you planning to analyze Twitter data?, Do you plan to display Tweets or aggregate data about Twitter content outside Twitter? Will your product, service, or analysis make Twitter content or derived information available to a government entity? - Wait a few days for Twitter to review and approve the Elevated access; you will receive an email from Twitter.
- Once you have Elevated access, enter the developer’s dashboard (https://developer.twitter.com/en/portal/dashboard) and from the left menu, click
Products > Premium > Dev environments
and underAccount Activity API / Sandbox
, clickSet up dev environment
; inDev environment label
entersb
or the same value entered inSettings > Twitter > Synchronization > Dev environment label
. - Enter your app Settings area from the Left menu > Projects & Apps > Your project > Your app, and under User authentication settings, click Set up and activate OAuth 1.0a. In-App permissions check Read and write and Direct message; in Callback URI / Redirect URL, enter the URL you get from AiX > Settings > Twitter > Get callback URL; in Website URL, enter your website URL.
- Enter your app Keys and tokens area from the Left menu > Projects & Apps > Your project > Your app > Keys and tokens, and under Authentication Tokens, generate Access Token and Secret, copy and paste them into AiX > Settings > Twitter.
- Enter your Twitter profile username in AiX > Settings > Twitter > Your username. Get it from your Twitter profile page, and copy the name starting with @ or the URL part containing your username. Ex. https://twitter.com/aix
- Save the AiX settings and click the button AiX > Settings > Twitter > Subscribe, and you’re done. AiX will receive all messages sent to your Twitter account.
More information
- If you receive duplicate messages, the Twitter account you are using for testing may be the same as the one you synced. Try sending a message from another Twitter account.
- Use a live domain; localhost is not supported.
- When a message is received from a Twitter user, you may send up to 5 messages in response within a 24-hour window. No messages can be sent after 24 hours of receiving the Twitter message.
- Depending on the media type, you can send a maximum of 3 or 4 attachments.
- The following AiX rich messages are not supported: images slider, slider, and card.
PREVIOUS < Messenger > More Information
NEXT > Telegram