Is there any way to use similiar method but with API v2 (Client class)?
I used this method
https://docs.tweepy.org/en/stable/api.html#tweepy.API.lookup_friendships
API.lookup_friendships()
But now I need to migrate to API v2
There is no equivalent endpoint in Twitter API v2 yet.
You can refer to the Twitter API endpoint map in the Twitter API documentation.
It says "[COMING SOON]" for GET friendships/lookup, the Twitter API endpoint API.lookup_friendships uses,.
Related
On version 1.1 of the Twitter API, we could use "account/verify_credentials".
However this now requires Elevated access to use the 1.1 version of the API.
Is there a way todo it using the V2 part of the Twitter API?
Edit: all I need is the username
At the moment, there is not a way to do this in v2. However, a future API feature may add this (probably as part of the OAuth 2.0 user implementation that is currently being worked on).
You can request elevated access to get to v1.1 endpoints for free.
I am creating an api agent and I wanted to add functionality to the webhook to be able to talk to Facebook graph api. In order to do that, I want the specific intent to require a sign-in to Facebook before calling the webhook. That way it would have the token to make the API calls to Graph API.
Any idea how I can do that?
I cannot find the authorization url, token url and client secret needed for OAuth linking.
Currently, you have to own the OAuth endpoint for it to work with actions, so using the Facebook OAuth is not supported.
I'd prefer to use v3 of youtube's api (json over xml!), but want access to comments, which aren't available in v3 but are available in v2.
Can I use the same access token, using the scope https://www.googleapis.com/auth/youtube for both v2 and v3?
I believe I have to add the scope https://gdata.youtube.com to make the access token compatible with both versions of the API
i try to access to BigQuery via the REST API from my webserver by this request for example:
https://www.googleapis.com/bigquery/v2/projects/project%3Aid/queries?fields=rows&key={YOUR_API_KEY}
As {YOUR_API_KEY} I use the API key for server apps from the Google API Console but I get a "401 Unauthorized"
What's the right way to do this request from a server without user interaction for authentication?
Google BigQuery does not support access via API key authorization. Instead, you should be using the OAuth flow that matches what you are trying to do with your application. See the BigQuery Authorization documentation here.
Without knowing anything about your implementation language I can only point you towards the google documentation: https://developers.google.com/bigquery/ which is fairly comprehensive.
Should you be using c# then you can check here on SO Google OAuth2 Service Account Access Token Request gives 'Invalid Request' Response
I'm working on an app and a part of it is to get the mentions count of this app. I created an app on Twitter and I generated an OAuth signature for the REST API v1.1 GET statuses/mentions_timeline and access the mentions timeline to get the count (https://api.twitter.com/1.1/statuses/mentions_timeline.json). My question is how did we dynamically generate the oauth signature to access the mentions timeline and get the counts.
You can either write your own OAuth provider or use an existing library. Here's a list of 3rd party libraries on the Twitter site:
https://dev.twitter.com/docs/twitter-libraries#dotnet
DotNetOpenAuth is good and there are others.
If you want to write your own, check out Twitter's OAuth documentation:
https://dev.twitter.com/docs/auth/oauth
and here's another good OAuth reference:
http://hueniverse.com/oauth/
The OAuth implementation does not change with the new (controversial) Twitter API. You can keep on generating OAuth signatures just like you did with Twitter API 1.0.