Beispiel #1
0
        private EdFiOdsResourcesClient BuildEdFiOdsV3Client(OdsApiSettings settings, string baseUrl)
        {
            var edFiOdsClient = new EdFiOdsResourcesClient(new Uri(baseUrl, UriKind.Absolute));
            var accessToken   = _odsTokenRetreiver.GetAccessToken(settings.AsOdsTokenSettings());

            edFiOdsClient.HttpClient.DefaultRequestHeaders.Add("Authorization", $"Bearer {accessToken}");
            return(edFiOdsClient);
        }
 public OdsApiClient(EdFiOdsResourcesClient edFiOdsResourcesClient)
 {
     _edFiOdsResourcesClient = edFiOdsResourcesClient;
 }