Is there a C# example for Jira.CreateRestClient that uses API Token?

I know there are some examples for HttpRequest/HttpResponse…However I would like to see if there are any code samples that show how to use CreateRestClient with the API token in place of (URL,UserName,Password)

Basic authentication was deprecated and I do not know how to get around the error I keep getting that tells me this.

I’m using Jira NuGet package v. 12.4

Thanks for your help!

Hi @zfischer

Thanks for the question. Yes, the basic auth with password is deprecated but there are couple of other options you have:

Although, we don’t have C# example, but these pages do a great job of explaining how each auth works, when to use them and how to make API calls using them.

Let us know if you have any more questions :slight_smile: