I’ve some questions:
is there any way to know if the user blocked the authenticating user? I’ve just noticed that I can see the statuses count, without seeing the tweets, but that could also happen if the user is protected or if he has 0 statuses. Am I wrong?
The “lang” value is the language that the user use to view its twitter or is it something ‘guessed’ by parsing his tweets? Or what else?
Thanks
Use friendships/show to get information on blocking. You can tell if the target is blocking you. If the source_id or source_screen_name is for the authenticated user, then the relationship.source.blocking and relationship.source.blocked_by values will be true or false. Otherwise, they will be null.
friendships/show
source_id
source_screen_name
relationship.source.blocking
relationship.source.blocked_by
Thanks for the reply. My goal is also to minimize the calls to API, but if there are no alternatives I will do what is needed.
What about the nature of the “lang” value, is there any explanation? Thanks again.
Yes there is an explanation. Did you check the developer documentation?
https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/user-object
Thank you very much, I didn’t see it, sorry. So, correct me if I’m wrong, all the available languages are these: https://dev.twitter.com/web/overview/languages