自动生成API代码

Using the API Documentation in Interactive mode

The API Documentation pages on this site offer an interactive mode where users can click on their selected criteria and the API call with the correct syntax will be auto-generated for them.

Follow these steps to switch to the interactive mode:

  1. Login to our Developers Portal site with your registered email and password

    image
  2. Go to the method in the documentation that you want to test, e.g. Go to the method in the documentation that you want to test, e.g. GET /companies
  3. Click on the “Authorize” button at "API Query Builder" section on the left side and enter your API key to get access to the interactive mode

    image
  4. Paste the API token you are using and click on ‘Authorize’. This action will attach the token= parameter to your API call and authorize you to access the data you have subscribed to.

    image

    You will get a confirmation if the applied token is valid or not:

    image
  5. Now you can use the drop-down menu and apply Query parameters to your call. For example, let’s query companies within China, using the parameter country=CN. Then we click on ‘Execute’ and the API call’s response will be visible in the Query Result.

    image

    Generated call: https://api.emis.com/v2/company/companies?country=CN&token=

    image