getUserFollowedUsersResponse method

Future<Response> getUserFollowedUsersResponse(
  1. String sessionToken, {
  2. int? offset,
  3. int? limit,
})
inherited

Endpoint used: GET /user/follows/user

Returns a http response of the all the Users that the user follows, the sessionToken is the session token obtained using the login function of the client.

Implementation

Future<http.Response> getUserFollowedUsersResponse(String sessionToken,
    {int? offset, int? limit}) async {
  final _offset = '&offset=${offset ?? 0}';
  final _limit = '&limit=${limit ?? 10}';
  final unencodedPath = '/user/follows/user?$_offset$_limit';
  final uri = 'https://$AUTHORITY$unencodedPath';
  var response = await http.get(Uri.parse(uri), headers: {
    HttpHeaders.contentTypeHeader: 'application/json',
    HttpHeaders.authorizationHeader: 'Bearer $sessionToken'
  });
  return response;
}