followChannel method
- String channelPublicId
KO: 카카오톡 채널 간편 추가하기
EN: Follow Kakao Talk Channel
Implementation
Future<FollowChannelResult> followChannel(
final String channelPublicId,
) async {
if (!await AuthApi.instance.hasToken()) {
return _followChannel(channelPublicId, null);
}
String? agt;
try {
if (!kIsWeb) {
await AuthApi.instance.refreshToken();
}
agt = await AuthApi.instance.agt();
return await _followChannel(channelPublicId, agt);
} catch (e) {
rethrow;
}
}