Registering LINE User ID to Repro (iOS/Android 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
[Repro setUserID:@"user123"];
// Link LINE User ID
[Repro linkLineID:@"LINE_USER_ID" lineChannelID:@"LINE_CHANNEL_ID"];
// Set user ID first
Repro.setUserID("user123")
// Link LINE User ID
Repro.linkLineID(lineUserID: "LINE_USER_ID", lineChannelID: "LINE_CHANNEL_ID")
// Set user ID first
Repro.setUserID("user123");
// Link LINE User ID
Repro.linkLineID("LINE_USER_ID", "LINE_CHANNEL_ID");
// Set user ID first
Repro.setUserID("user123")
// Link LINE User ID
Repro.linkLineID("LINE_USER_ID", "LINE_CHANNEL_ID")
// Set user ID first
ReproCpp::setUserID("user123");
// Link LINE User ID
ReproCpp::linkLineID("LINE_USER_ID", "LINE_CHANNEL_ID");
// Set user ID first
Repro.SetUserID("user123");
// Link LINE User ID
Repro.LinkLineID("LINE_USER_ID", "LINE_CHANNEL_ID");
// Set user ID first
Repro.setUserID("user123");
// Link LINE User ID
Repro.linkLineID("LINE_USER_ID", "LINE_CHANNEL_ID");
// Set user ID first
Repro.setUserID("user123");
// Link LINE User ID
Repro.linkLineID("LINE_USER_ID", "LINE_CHANNEL_ID");
// Set user ID first
await Repro.setUserID("user123");
// Link LINE User ID
await Repro.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.
[Repro unlinkLineID:@"LINE_USER_ID" lineChannelID:@"LINE_CHANNEL_ID"];
Repro.unlinkLineID(lineUserID: "LINE_USER_ID", lineChannelID: "LINE_CHANNEL_ID")
Repro.unlinkLineID("LINE_USER_ID", "LINE_CHANNEL_ID");
Repro.unlinkLineID("LINE_USER_ID", "LINE_CHANNEL_ID")
ReproCpp::unlinkLineID("LINE_USER_ID", "LINE_CHANNEL_ID");
Repro.UnlinkLineID("LINE_USER_ID", "LINE_CHANNEL_ID");
Repro.unlinkLineID("LINE_USER_ID", "LINE_CHANNEL_ID");
Repro.unlinkLineID("LINE_USER_ID", "LINE_CHANNEL_ID");
await Repro.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