profile method

Future<TalkProfile> profile()

KO: 카카오톡 프로필 가져오기
EN: Retrieve Kakao Talk profile

Implementation

Future<TalkProfile> profile() async {
  return ApiFactory.handleApiError(() async {
    Response response = await _dio.get(Constants.profilePath,
        queryParameters: {Constants.secureResource: true});
    return TalkProfile.fromJson(response.data);
  });
}