Registering LINE User ID to Repro (Web SDK)¶
By registering LINE User IDs with Repro, you can send messages to users via LINE.
Warning
You cannot register 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 registering LINE User IDs, please create a LINE channel in advance.
Before registering any LINE User IDs, you must set the user identifier using
setUserID(). If the user ID is not set, the LINE User ID registration will fail.
Registering LINE User ID¶
To register 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');
Unregistering LINE User ID¶
To unregister 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 registering 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 registration fails, please verify that the user ID is set