今回はcurlでuserのprofileを取るAPIをcurlで叩いてみた。
curl "https://api.line.me/v2/bot/profile/{user_id}"\
-H "X-Line-ChannelSecret: {ChannelSecret}"\
-H "Authorization: Bearer {Channel_Access_Token}"
これが失敗した場合は認証などに問題がある
取れた
{"displayName":"{lineの名前}","userId":"{user_id}","pictureUrl":"{profile写真のurl}","statusMessage":"{lineの一言}"}