error in running curl as shown in tutorial

Shubham Gupta June 24, 2015

hey , a beginner here in JIRA api , 
I'm trying to run :

 curl -u username:password https://mycompanyname.atlassian.net/jira/rest/api/2/issue/XYZ-123

 in my mac terminal .

And, i'm getting obviously unexpected result.
what's wrong i'm doing? 

I am just getting the source code of the page.. Do i need to configure my profile or something ? 

2 answers

0 votes
GabrielleJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 24, 2015

What do you mean by "source of the page"? Whatever you received in the URL you posted should be in json format.

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 24, 2015

What error are you getting?

Suggest an answer

Log in or Sign up to answer