Ejemplo n.º 1
0
        public async Task <ILarkCollection <TResponse> > GetCollectionAsync <TResponse>(ILarkRequest request)
        {
            var restClient  = RestClientFactory();
            var restRequest = new RestRequest(request.GetURL(), DataFormat.Json);

            return(await restClient.GetAsync <LarkCollection <TResponse> >(restRequest));
        }
Ejemplo n.º 2
0
        public async Task <ILarkCollection <TResponse> > GetCollectionAsync <TResponse>(ILarkRequest request)
        {
            var url = request.GetURL();

            return(await RestClient.GetAsJsonAsync <LarkCollection <TResponse> >(url));
        }
Ejemplo n.º 3
0
        public async Task <TResponse> GetItemAsync <TResponse>(ILarkRequest request)
        {
            var url = request.GetURL();

            return(await RestClient.GetAsJsonAsync <TResponse>(url));
        }