-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't post tweet without elevated account (using the V2 API) #421
Comments
Hey @shai-almog , if I remember well, the getRequestHelperV2() is using oAuth2 (with token), and V1 is not. What do you mean exactly by without elevated permission ? You want to use the credentials of another user than your own account ? |
Oh OK, so you mean that with an essential account the method is not working right ? |
Yes. |
I worked with OAuth but I can't say I'm deeply familiar with the nuances. I'll try to look into it. |
Ok feel free to submit a pull request :) |
I'm trying to post a tweet without the elevated permissions and getting an error since 1.x isn't supported. Looking at the code I see this line:
https://github.com/redouane59/twittered/blob/develop/src/main/java/io/github/redouane59/twitter/TwitterClient.java#L803
I tried to change
getRequestHelper()
instead ofgetRequestHelperV1()
. But this won't work sincepostRequestWithBodyJson
is V1 specific so I guess we need something different here.I tried doing something similar to:
But it seems wrong.
It seems a bit unclear when V1 is used and when V2 is used. I'd be happy to submit a PR to the readme if I understood that logic.
The text was updated successfully, but these errors were encountered: