AnsweredAssumed Answered

Basic Authentication of flowdock in c#

Question asked by RituAnand on Jan 29, 2018
Latest reply on Jan 30, 2018 by Michael Bulkeley

Hi I am trying to achieve basic http authentication of flowdock.

Below is my code:

 

HttpClientHandler handler = new HttpClientHandler();

 

HttpClient client = new HttpClient();

client.BaseAddress = new Uri("https://token@api.flowdock.com///token@api.flowdock.com/");

client.DefaultRequestHeaders.Accept.Add(
new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));

HttpResponseMessage response = client.GetAsync("organizations/uhg/audits/users").Result;

 

I am getting a StatusCode:401,ReasonPhrase="Unauthorised" message.

 

Any pointers to this

 

#Flowdock #RestAPI

Outcomes