Skip to content
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

How to use the library with just client id and access token? #1184

Open
grofit opened this issue Oct 2, 2022 · 0 comments
Open

How to use the library with just client id and access token? #1184

grofit opened this issue Oct 2, 2022 · 0 comments

Comments

@grofit
Copy link

grofit commented Oct 2, 2022

I have a native app scenario where we already have a PKCE OAuth2 flow in place to get the users access token and it is refreshed within the app, but it seems like you require far more than that to make API calls but the api docs imply for V2 you can get by with just the access token.

I have tried doing:

var twitterCredentials = new TwitterCredentials() { AccessToken = AppState.GetTwitterOAuthToken() };
var twitterApi = new TwitterClient(twitterCredentials);
// make calls on v2 endpoints

It just blows up giving me unauthorised etc though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant