Details
-
Risk
-
Resolution: Unresolved
-
Blocker
-
None
-
fuse-7.11-GA, fuse-7.12-GA
-
None
-
False
-
None
-
False
-
%
-
Todo
-
0
-
Very Likely
-
Likely
Description
Does Camel twitter components support Twitter v2 API? (since v1.1 looks restricted for new apps)
Do Camel twitter components support OAuth 2.0 auth? (there is an error `Invalid or expired token.` from `twitter4j` when I use OAuth 2.0 Client ID and Client Secret in accessToken/accessTokenSecret )
During testing Fuse Online (Camel 2.x) I noticed that Twitter blocked one of our accounts so I have created a new one.
However, when I created an app and generate Access Token and Secret for Oauth 1.0(to authenticate OAuth 1.0a API requests), they have Read only permissions.
(our old apps in the old account have `Created with Read, Write, and Direct Messages permissions` ).
I don't find any place where it can be changed.
So when I use that, the integration for Direct Message failed on twitter4j.TwitterException.
twitter4j.TwitterException: 403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following). message - You currently have access to Twitter API v2 endpoints and limited v1.1 endpoints only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-leve code - 453
There is a note here https://developer.twitter.com/en/docs/apps/app-permissions that `These permissions are only available for Elevated and Academic Access.`, however, on the page which describes API restriction[1], there is no mention about Elevated and academic access at all, only Free and Basic subscription available (and some "blurred" Enterprise subscription which is not described at all and there is only Twitter Enterprise API Interest Google Form 🤔)
Also, according to that page[1], the Twitter v1.1 API is limited also for users with paid Basic subscription plan.
So, correct me if I am wrong, but it appears that any new Twitter application(at least in Free and Basic subscription plan) will not be working with camel Twitter components.
[1] - https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#item0
Attachments
Issue Links
- mentioned on