How to get friend's list and friend's profile on line api using php or shell script?

Viewed 7670
2 Answers

LINE API supports user to get the user IDs of users who have added the LINE official account as a friend (followers).

HTTP request GET https://api.line.me/v2/bot/followers/ids

get the user IDs of users who have added the LINE official account as a friend (followers).

HTTP request

GET https://api.line.me/v2/bot/followers/ids

Shell script example

curl -v -X GET https://api.line.me/v2/bot/followers/ids? \
-H 'Authorization: Bearer {channel access token}'

Please beware of the feature is available only to verified or premium accounts.

Related