I have this API invoked into a c# code block. I have the web api package installed with the imports of Restapi, restsharp.authentication, restsharp, restsharp.authentication.oauth, newtonsoft.json and newtonsoft.json.linq
var options = new RestClientOptions("https://URL")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/EndPoint", Method.Get);
request.AddHeader("Accept", "Accept header");
request.AddHeader("Authorization", "Bearer Token");
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
I already have this installed and updated, thanks though! its weird as this call was created in postman and they used to work with UiPath but i think im missing an import or something