public async Task <ServiceResponse <byte[]> > GetAnalysisAsync(string submissionId, string format) { var formatInformation = await GetResultFormat(format); var submissionUrl = UrlBuilder.Create(_endpoint + Endpoints.Analyze).AddPath(submissionId).Url; return(await _client.CallAsync(HttpMethod.Get, submissionUrl, formatInformation)); }
public async Task <ServiceResponse <ReportingResultWithFormat> > GetAnalysisAsync(string submissionId, string format) { var formatInformation = await GetResultFormatsAsync(string.IsNullOrWhiteSpace(format)?null : new[] { format }); var submissionUrl = UrlBuilder.Create(Endpoints.Analyze).AddPath(submissionId).Url; return(await _client.CallAsync(HttpMethod.Get, submissionUrl, formatInformation)); }
public async Task <ServiceResponse <IReadOnlyCollection <ApiDefinition> > > SearchFxApiAsync(string query, int?top = null) { var url = UrlBuilder .Create(_endpoint + Endpoints.FxApiSearch) .AddQuery("q", query) .AddQuery("top", top); return(await _client.CallAsync <IReadOnlyCollection <ApiDefinition> >(HttpMethod.Get, url.Url)); }
public async Task <ServiceResponse <ApiInformation> > GetApiInformationAsync(string docId) { string sendAnalysis = UrlBuilder .Create(_endpoint + Endpoints.FxApi) .AddQuery("docId", docId) .Url; return(await _client.CallAsync <ApiInformation>(HttpMethod.Get, sendAnalysis)); }
public async Task <ServiceResponse <UsageDataCollection> > GetUsageDataAsync(int?skip = null, int?top = null, UsageDataFilter?filter = null, IEnumerable <string> targets = null) { var usedApiUrl = UrlBuilder.Create(_endpoint + Endpoints.UsedApi) .AddQuery("skip", skip) .AddQuery("top", top) .AddQuery("filter", filter) .AddQueryList("targets", targets) .Url; return(await _client.CallAsync <UsageDataCollection>(HttpMethod.Get, usedApiUrl)); }
public async Task <ServiceResponse <AnalyzeResponse> > GetAnalysisAsync(string submissionId) { var submissionUrl = UrlBuilder.Create(_endpoint + Endpoints.Analyze).AddPath(submissionId).Url; return(await _client.CallAsync <AnalyzeResponse>(HttpMethod.Get, submissionUrl)); }