I am new to Django. I need to use some API to get the .json format data. But the API needs authentication. I have already got the username and password. I see my colleague use Postman to enter the account then he can see the JSON file in intellij.
I am in Pycharm, I am wondering is there some code I can use to realize the same function of postman rather than install the postman? What I have: API URL, account username and password
Any help is really appreciated, also please let me know which file I should write in the Django, views.py??
Update: thank you for all the help!I am sorry I am not familiar with the postman, I only know my colleague show me how to enter the username and password.
I have the API/URL, when I click on it, it will direct me to a page with JSON format data, looks like this
{"businessOutcomes":[{"businessOutcomeId":"1234","origin":"JIRA",.....]}
I have over 100 this kind of URL/API, I want to get the .json file in pycharm and so I can make them as the df to do the data analysis I want. And my colleague told me that the API has some authentication and I have to use the username and password to get in.
I hope this explain what I want to realize.
requestsmodule if you're calling it frompython. or use ofAjax or Axioswhich are based on Javascript. the you have to include yourcredsaspayloadand then you will response based on yourAPI.