profile method

Future<TalkProfile> profile()

KO: 카카오톡 프로필 조회
EN: Retrieve Kakao Talk profile

Implementation

Future<TalkProfile> profile() async {
  SdkLog.d('[TalkApi.profile] started');
  final params = <String, String>{Constants.secureResource: true.toString()};
  final response = await _client.get(
    Constants.profilePath,
    queryParameters: params,
  );
  final result = TalkProfile.fromJson(response.data);
  SdkLog.i('[TalkApi.profile] completed');
  return result;
}