Hi all,
I can log into my Jira cloud account with my username and password via chrome and then enter a Rest call on the address bar like this:
https://xyzonline.atlassian.net/rest/api/2/issue/10011
..and it returns the expected json issue object to my browser. But an HttpWebResponse call in a C# program using the same credentials gets a 404 every time (method is a GET):
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://xyzonline.atlassian.net/rest/api/2/issue/10011"); request.Credentials = new NetworkCredential("me@xyzonline.com", "MyPass"); request.Method = httpMethod.ToString(); HttpWebResponse response = (HttpWebResponse)request.GetResponse();
...Same computer, seconds apart. Anyone see what I'm doing wrong?
Hello,
You need to generate API token instead of the password:
https://confluence.atlassian.com/cloud/api-tokens-938839638.html
Hi Alexey,
I've tried that and it failed also but perhaps I have the syntax wrong. Does anyone have the syntax for using the API-generated key in a simple C# / .Net example?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.