RestSharp tips

RestSharp

Here is a simple way to add bearer authentication header


string accessToken = "...";
RestRequest restRequest = new("server/somerequest", Method.Get);
restClient.Authenticator = new JwtAuthenticator(accessToken);

Post a Comment

Previous Post Next Post