'Calling bitbucket rest api in postman gives error

I am trying to download a pull request conflicts elements list via api call. From some documentation I obtain the following code to do it :

curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/commits/export/csv?dateType=updated&state=open&sinceDate=2020-10-01&untilDate=2020-10-13" --output pullrequests.csv

But when trying to execute the code from postman (after importing the curl text), I am obtaining following error :

Error: getaddrinfo ENOTFOUND bitbucket.test

My bitbucket url is : https://bitbucket.org/test

here is my pull request with the complete url : enter image description here

Thus my API url should be something like : https://bitbucket.test/rest/awesome-graphs-api/latest/commits/export/csv?state=open isn't it ?

I suspect it is related to my url and not realy to login issues or bad request. I tried test.com also, it is not working.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source