LINE User ID Integration¶
By linking LINE User IDs with Repro, you can send messages to users via LINE.
Warning
You cannot link accounts using only your LINE User ID.
The LINE User ID is different from the user's display name registered in LINE or the LINE ID used for friend search in LINE.The LINE User ID differs from the display name or the LINE ID used for friend search in the LINE app.
Before linking LINE User IDs, please create a LINE channel in advance.
Before linking any LINE User IDs, you must set the user identifier using
setUserID(). If the user ID is not set, the LINE User ID linking will fail.Before linking any LINE User IDs, you must set the user identifier usingsetUserID(). If the user ID is not set, the LINE User ID linking will fail.
LINE User ID Integration¶
To link a LINE User ID and channel ID with Repro, use the linkLineID method. Set LINE_USER_ID to a 33-character LINE user ID starting with U, and LINE_CHANNEL_ID to the channel ID created in LINE Channel Settings.
// Set user ID first
reproio('setUserID', 'user123');
// Link LINE User ID
reproio('linkLineID', 'LINE_USER_ID', 'LINE_CHANNEL_ID');
Unlinking LINE User ID¶
To unlink a LINE User ID, use the unlinkLineID method. Set LINE_USER_ID to a 33-character LINE user ID starting with U, and LINE_CHANNEL_ID to the channel ID created in LINE Channel Settings.
reproio('unlinkLineID', 'LINE_USER_ID', 'LINE_CHANNEL_ID');
Notes¶
Before linking any LINE User IDs, be sure to set the user ID with
setUserID()LINE User ID and channel ID cannot be empty strings or null
If linking fails, please verify that the user ID is set