profile method

Future<TalkProfile> profile()

Fetches current user's KakaoTalk profile.

Implementation

Future<TalkProfile> profile() async {
  return ApiFactory.handleApiError(() async {
    Response response = await _dio.get("/v1/api/talk/profile",
        queryParameters: {"secure_resource": true});
    return TalkProfile.fromJson(response.data);
  });
}