Get Twitter userId using twitter api

I can get information about all users using

https://api.twitter.com/1/account/verify_credentials.json

But I want to get only ID using api

How to get it.

I do not want to extract from all credentials.

I need facebook url

https://graph.facebook.com/me?fields=id

It returns only the ID.

Thanks.

+4
source share
1 answer

The closest Twitter comes to something like the GET friends/ids endpoint, which will return a list of friend identifiers for a given Twitter user.

Details here: https://dev.twitter.com/docs/api/1.1/get/friends/ids

+1
source

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


All Articles