I’m sure this is a stupid question, but here it goes.

So, I want to check if a user follows another. I found out that GET friendships/show seemed to be the best option. I know how to authenticate with OAth 1.1, but how do I “toggle” between user and app auth? I’m confused, like very confused, I’m most likely overthinking this.

The http authentication headers determine if it’s app auth call or user auth call. App only auth is the “Bearer Token”, OAuth2 OAuth 2.0 App-Only (Bearer Token) | Docs | Twitter Developer Platform . For user auth, it’s a Consumer Key & Secret, and an Access Token and Secret - 4 parts for OAuth1.0a OAuth 1.0a | Docs | Twitter Developer Platform . Whatever library you’re using should be able to do both. Sometimes for app only auth you specify the API key (Consumer key) and secret only.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.