getLoggedInUserCustomListsResponse method
Endpoint used: GET /user/list
Gets the limit
number of custom lists from offset
in the list of Custom Lists of the user identified
by the sessionToken
and returns a http response
containing the data.
Implementation
Future<http.Response> getLoggedInUserCustomListsResponse(
String sessionToken, int? limit, int? offset) async {
var _limit = limit == null ? '' : '?limit=$limit';
var _offset = offset == null ? '' : '&offset=$offset';
final unencodedPath = '/user/list';
final uri = 'https://$AUTHORITY$unencodedPath$_limit$_offset';
var response = await http.get(Uri.parse(uri), headers: {
HttpHeaders.contentTypeHeader: 'application/json',
HttpHeaders.authorizationHeader: 'Bearer $sessionToken'
});
return response;
}