requestExecute static method
Requests specific uri and returns Page of AccountResponse. This method is helpful for getting the next set of results.
Implementation
static Future<Page<AccountResponse>> requestExecute(
http.Client httpClient, Uri uri) async {
TypeToken<Page<AccountResponse>> type =
new TypeToken<Page<AccountResponse>>();
ResponseHandler<Page<AccountResponse>> responseHandler =
new ResponseHandler<Page<AccountResponse>>(type);
return await httpClient
.get(uri, headers: RequestBuilder.headers)
.then((response) {
return responseHandler.handleResponse(response);
});
}