Using Postman to query the API
You can integrate your application with eHour via the API. One way to interact with the eHour API is through Postman, a popular API development tool that simplifies making API requests and testing APIs. In this article, we'll walk you through how to import the eHour API into Postman.
To import eHour API into Postman, follow these steps:
- Open Postman and click the "Import" button next to My Workspace.
- In the "Import" dialog box, select "Link."
- Copy and paste the following URL: https://ehourapp.com/api-docs/eHour-api
- Click "Continue"
- Select "Import".
That's it! You've successfully imported eHour API into Postman. Let's give it a try by getting the list of projects.
In the APIs tab:
- Open the eHour API
- In the Authorization tab, enter your API key in the {{apiKey}} Value:
- Select "Save" on the right.
- Select the "Get list of projects with the minimum properties" endpoint by selecting API, v1, projects:
- The Params hold dummy data. You can either replace the query with one that matches one of your projects or disable the parameter. Hit send to get the data: