-
-
Save jskopek/a707d237e0a39acaf311ad79dcdf836c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public MediaServices(string tenantDomain, string restApiUrl, string clientId, string clientSecret) | |
{ | |
_tenantDomain = tenantDomain; | |
_restApiUrl = restApiUrl; | |
_clientId = clientId; | |
_clientSecret = clientSecret; | |
_httpClient = new HttpClient { BaseAddress = new Uri(restApiUrl) }; | |
_httpClient.DefaultRequestHeaders.Add("x-ms-version", "2.15"); | |
_httpClient.DefaultRequestHeaders.Add("DataServiceVersion", "3.0"); | |
_httpClient.DefaultRequestHeaders.Add("MaxDataServiceVersion", "3.0"); | |
_httpClient.DefaultRequestHeaders.Add("Accept", "application/json;odata=verbose"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment