ethomson / send-tweet-action

Send a tweet from a GitHub Action
MIT License
84 stars 8 forks source link

Uses Twitter API v2 #19

Closed Eomm closed 1 year ago

Eomm commented 2 years ago

Using this action for the first time leads to:

  {
    message: 'You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal. You can learn more here: https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-leve',
    code: 453
  }

Right now, requesting Elevated access is not necessary actually thanks to the Twitter API v2.

As shown here: https://developer.twitter.com/en/docs/twitter-api/migrate/twitter-api-endpoint-map it is necessary to move from the statuses/update API to the v2 interface:

curl --location --request POST 'https://api.twitter.com/2/tweets' \
--data-raw '{
    "text": "Hello World!"
}'
DominiqueMakowski commented 2 years ago

I have the same error

Eomm commented 2 years ago

I have created a new action for this reason

https://github.com/Eomm/why-don-t-you-tweet

eumel8 commented 2 years ago

@Eomm works, thx!

vsoch commented 2 years ago

hey @ethomson I wanted to check in to follow up on the issue here - is support of the v2 API implemented? Thank you!

Eomm commented 1 year ago

Closing as I built a replacement https://github.com/Eomm/why-don-t-you-tweet