Reputation: 249
I can able to get All the users details by using
https://api.twitter.com/1/account/verify_credentials.json
But i want to get only ID by using api
How to obtain that.
I dont want to extract from the total credentials.
I want like facebook URL
https://graph.facebook.com/me?fields=id
It returns only ID.
Thanks.
Upvotes: 4
Views: 2924
Reputation: 2521
The closest Twitter comes to something like this is the GET friends/ids
endpoint, which will return a list of friend IDs for a given Twitter user.
Details here: https://dev.twitter.com/docs/api/1.1/get/friends/ids
Upvotes: 1