Notice: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' in /home/bihariban/public_html/qatestinghelp_com/wp-content/themes/grania/functions.php on line 73 How to get 'token' for API? - QATestingHelp
API TestingPostman

How to get ‘token’ for API?

How to get 'token' for API

You can get token for API from two ways:

  1. First is when you will sign up into a website the website will provide the ‘token’ via email or on the same website in any section.
  2. API owner will prove you some keys and their values that you have to fill in for “x-www-form-urlencoded” as follows

After that, you have to go to the Headers TAB and need to set headers as follows

This request will be POST request and you will get a JSON response that will look like.

Now you can fetch acces_token from JSON response and use it for further endpoints.

Leave a reply

Your email address will not be published. Required fields are marked *