So the way to do it is the following,
httpClient.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", "Your Oauth token");
More Related Contents:
- How do I make calls to a REST API using C#?
- Deciding between HttpClient and WebClient
- How do I set a cookie on HttpClient’s HttpRequestMessage
- Suspending event not raising using WinRT
- Best practice to return errors in ASP.NET Web API
- Progress bar with HttpClient
- How to validate Azure AD security token?
- RestSharp JSON Parameter Posting
- 404 error after adding Web API to an existing MVC Web Application
- How can I return a custom HTTP status code from a WCF REST method?
- Async implementation of IValueConverter
- Get Screen Resolution in Win10 UWP App
- Correct way to get the CoreDispatcher in a Windows Store app
- HttpClient single instance with different authentication headers
- How to check if file exists in a Windows Store App?
- How to resize Image in C# WinRT/winmd?
- RestSharp simple complete example [closed]
- Download file with WebClient or HttpClient?
- Login using Google OAuth 2.0 with C#
- Windows Phone 8: Media file access
- How to send a Status Code 500 in ASP.Net and still write to the response?
- Adding a swipe gesture to open SplitView Pane
- WinRT apps and Regional settings. The correct way to format dates and numbers based on the user’s regional settings?
- Could not load file or assembly Windows.winmd’
- Read text file in project folder in Windows Phone 8.1 Runtime
- RunAsync – How do I await the completion of work on the UI thread?
- Upload file from Html form (multipart/form-data) to WCF REST service as a stream without streaming the whole form’s inputs?
- How to properly read and write a file using Windows.Storage on Windows Phone 8
- How write a file using StreamWriter in Windows 8?
- Update UI from thread in WinRT