This project allows you to post tweets to Twitter.
Before using this block, you need to obtain your Twitter API key and set the key permissions to allow read and write.
- Go to the Twitter Developer Dashboard
- Select an APP
- Click
Editin theUser authentication settingssection - In the
App permissionssection, selectRead and write. You can fill in the remaining required fields as you like. After clicking save, return to the previous page. - On the APP page, click the
Keys and tokenstab to go to the keys page. - Generating
Consumer Keyswill give youAPI keyandAPI key secret. - Generate
Access Token and SecretunderAuthentication Tokens, which will give youAccess tokenandAccess token secret.
- content: The content of your tweet
- apiKey: Corresponds to the
API keyobtained in the previous step - apiSecret: Corresponds to the
API secret keyobtained in the previous step - accessToken: Corresponds to the
Access tokenobtained in the previous step - accessTokenSecret: Corresponds to the
Access token secretobtained in the previous step - medias: Media attachments for the tweet, up to a maximum of 4 media files