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