We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
You can get user's profile by the user_id.
user_id
https://devdocs.line.me/en/#bot-api-get-profile
$bot = new \LINE\LINEBot(new CurlHTTPClient('your-channel-token'), [ 'channelSecret' => 'your-channel-secret' ]); $res = $bot->getProfile('user-id'); if ($res->isSucceeded()) { $profile = $res->getJSONDecodedBody(); $displayName = $profile['displayName']; $statusMessage = $profile['statusMessage']; $pictureUrl = $profile['pictureUrl']; }