To test our API you might need API development software, such as Postman. Here's how to get started with Postman and Dapi.
Download the app from here.
We will be using the Mac version for this tutorial, but the process should be similar across platforms.
You may be prompted to log in or create an account. After you are finished with that step, you should see an interface similar to this:
- Download the Dapi sample Postman environment here
- Select the gear icon on the top right side of the screen.
- Select "Import" on the bottom of the "Manage Environments" pop-up window.
Select the JSON file you downloaded (it should be called dapi-environment.json).
Close the Manage Environments window.
Download the Dapi sample Postman collection here.
Select "Import" on the top left side of the screen.
- Upload the file you downloaded, which should be called dapi-api-collection.json
To add credentials and other API keys you will refer back to the Dapi sample environment. Follow these steps:
- Select the gear icon on the top right corner of the screen.
- Press the name of the "dapi - sample" environment, which should turn orange as you hover over it.
- Enter required values.
You can find required values by following steps in our Get Started guide here: Getting your API keys.
Use the "initial value" field for these parameters:
Use the "current value" field for these parameters:
Now that you know how to input required key values, you're ready to run some requests.
- Expand the dapi-sample collection on the left side of the screen. You should see the following sub-folders:
- Expand the relevant folder to find specific endpoints. For this tutorial, we will use "Auth".
- Click on the relevant request, such as "Exchange Token".
- Select "Body" in the central area of the screen. Your window should now look as follows:
Here you can see the following:
Endpoint URL. The format should be set to "POST".
Request body. It should already include all necessary variables in raw JSON format.
The "Send" request button which you will use to push the requests.
Ensure that you have typed in all the relevant fields from the request body into the environment. You can find out where to get the relevant information from our Get Started Guide.
View request response. If successful, it should look as follows:
For more information, see Making calls with Dapi's API.
Updated 4 months ago