How to check if a person matches another in twitter API V1.1

I know that twitter ported to api v1.1

I previously used to check whether a person should follow another person or not with the following code snippet:

https://api.twitter.com/1/friendships/exists.json?screen_name_a=Mamdoh_Salah&screen_name_b=rno 

But how can I get the same result in api v1.1? I get my authenticator (Acess request) and everything is fine, but when I view the page as follows

 https://api.twitter.com/1.1/friendships/exists.json?screen_name_a=Mamdoh_Salah&screen_name_b=rno 

I get this message:

 {"errors":[{"message":"Sorry, that page does not exist","code":34}]} 

Does anyone know if they support another link in api v1.1?

+4
source share
3 answers

friendship / show gives you information about the relationship between two users.

https://dev.twitter.com/rest/reference/get/friendships/show

Calls are limited to 180 per 15 minute window.

+2
source

In API v1.1 they replaced it with a friendship / search API , where you can specify a comma-separated list up to 100, and it will tell you about the connections between the authenticating user and each specified user

+1
source

The third method uses the endpoint / followers / identifiers (5000 per call), overlapping identifiers between all your friends / identifiers and followers / identifiers will give you the account identifiers that you follow who will follow you.

0
source

Source: https://habr.com/ru/post/1486504/


All Articles