예제 #1
0
        internal async Task <T> GetDataAsync(Feature feature, QueryType queryType, QueryOptions options)
        {
            string url = UrlBuilder.BuildUrl(_baseUrl, _apiKey, feature, queryType, options);

            return(await RestRequest.ExecuteAsync <T>(new Uri(url)).ConfigureAwait(false));
        }
예제 #2
0
        internal T GetData(Feature feature, QueryType queryType, QueryOptions options)
        {
            string url = UrlBuilder.BuildUrl(_baseUrl, _apiKey, feature, queryType, options);

            return(RestRequest.Execute <T>(new Uri(url)));
        }