getUserCustomListsResponse method
Endpoint used: GET /user/{id}/list
Get's limit
number of PUBLIC custom lists of a user identified by
it's userId
counting from list offset
and returns a http response.
Implementation
Future<http.Response> getUserCustomListsResponse(
String userId, int? limit, int? offset) async {
var _limit = limit == null ? '' : '&limit=$limit';
var _offset = offset == null ? '' : '&offset=$offset';
final unencodedPath = '/user/$userId/list';
final uri = 'https://$AUTHORITY$unencodedPath?$_limit$_offset';
var response = await http.get(Uri.parse(uri), headers: {
HttpHeaders.contentTypeHeader: 'application/json',
});
return response;
}