Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.24 KB

File metadata and controls

24 lines (18 loc) · 1.24 KB

Post to Twitter

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.

Get API Key

  1. Go to the Twitter Developer Dashboard
  2. Select an APP
  3. Click Edit in the User authentication settings section
  4. In the App permissions section, select Read and write. You can fill in the remaining required fields as you like. After clicking save, return to the previous page.
  5. On the APP page, click the Keys and tokens tab to go to the keys page.
  6. Generating Consumer Keys will give you API key and API key secret.
  7. Generate Access Token and Secret under Authentication Tokens, which will give you Access token and Access token secret.

Parameters

  • content: The content of your tweet
  • apiKey: Corresponds to the API key obtained in the previous step
  • apiSecret: Corresponds to the API secret key obtained in the previous step
  • accessToken: Corresponds to the Access token obtained in the previous step
  • accessTokenSecret: Corresponds to the Access token secret obtained in the previous step
  • medias: Media attachments for the tweet, up to a maximum of 4 media files