-
-
Notifications
You must be signed in to change notification settings - Fork 528
Description
💡 The Idea
Twitter (X) plugin uses Standard v1.1 so change to use X API v2
🔨 Breaking Feature
It would change the specifications of the Twitter plugin, but I believe it would not significantly change the other parts as well.
The Elevated section no longer appears on the X API v2 page of the X Developer Portal (it has been moved to the Overview page under Projects & Apps), so I think the Notify_twitter document needs to be updated (If and when this issue is resolved through an Apprise update, I will create an updated version of the document if necessary). Document updated (#1344).
Current Problem
Currently, the Apprise Twitter plugin uses the Standard v1.1 endpoint and when a free plan user tries to post to X or send a DM, the following error message appears and cannot be sent.
WARNING - Failed to send Twitter POST to https://api.twitter.com/1.1/statuses/update.json: error=403.
At first I thought something was wrong with my settings because I only got error=403, but when I tried to post to X using Home Assistant's X integration to test it out, the following error was logged.
Error 403: [{'message': 'You currently have access to a subset of X API V2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.x.com/en/portal/product', 'code': 453}]
After some research, it appears that the Standard v1.1 endpoint has been deprecated since around 2023, and free plan users can no longer post or send DM using the v1.1 endpoint.
So, it seems that free plan users need to use the X API v2 endpoint to post to X or send a DM.
I don't know how to make the changes because I have no programming knowledge, but I will attach a link to the X API v2 Migration guide that may help you with the program changes.