Add KakaoTalk Channel
Adding KakaoTalk Channel
The API redirects the user to add the KakaoTalk channel as a friend.
You can add a KakaoTalk channel using the addChannel function.
Its Promise<void> resolves without a success value. The return value does not confirm whether the user added the channel.
export function addChannel(channelPublicId: string): Promise<void>
channelPublicId: The ID of the KakaoTalk channel to add.
Get KakaoTalk Channel Add URL
You can retrieve the URL for adding a KakaoTalk channel using the getAddChannelUrl function.
export function getAddChannelUrl(channelPublicId: string): Promise<string>
channelPublicId: The ID of the KakaoTalk channel to add.
Open KakaoTalk Channel Add URL in Browser
You can open the URL for adding a KakaoTalk channel in a browser using the openAddChannelUrl function.
export function openAddChannelUrl(channelPublicId: string): Promise<string>
channelPublicId: The ID of the KakaoTalk channel to add.