Ejemplo n.º 1
0
        BaseResponse <Badge> IBadges.GetAllBadges(BadgeFilters filters, string inName)
        {
            MakeSure.ArgumentNotNullOrEmptyString(inName, nameof(inName));
            var url = ApiUrlBuilder
                      .Initialize(_apiKey)
                      .ForClient(ClientType.Badges)
                      .WithFilter(filters, inName)
                      .GetApiUrl();
            var response = _httpClient.GetAsync(url).Result.ReadAsJsonAsync <Data <Badge> >().ValidateApiResponse();

            return(response);
        }