API Quickstart Apps
The API Quickstart apps provide sample code for obtaining an access token and making a simple query to the API. You can use the apps for reference, or modify them to test out your own API requests in a development environment.
Prerequisites
For any of the quickstart apps, you will need three things:
- Your MyDataHelps service account name, like “MyDataHelps.1234.test.” See Service Accounts.
- Your MyDataHelps project ID. See API Basics.
- The private key you associated with your service account.
Note
The MyDataHelps API is designed for server-to-server communications. You will not be able to access it from client-based browser JavaScript.
Quickstart Apps
Quickstart apps are available in the following languages:
Postman Collection
Postman is a great tool for testing REST APIs. The MyDataHelps Postman Collection contains a number of sample queries to help you get up and running quickly.
Note
Please review Postman’s
Security Center before using the collection with production data that may contain PHI.
To use the collection:
- Create an account in Postman and log in. You may also use the desktop client.
- Navigate to the CareEvolution MyDataHelps Workspace. In the desktop client, use the search bar to find the CareEvolution collections.
- Select the collection and create a fork. This is your own private version of the collection.
- Enter your project ID, service account name, and service account private key in the “variables” section. In the private key, be sure to include the begin/end key tags (e.g.,
-----BEGIN RSA PRIVATE KEY-----) and linebreaks.
- Select a query from the collection.
- Adjust the parameters and body data as needed. Be sure to check the box next to any query parameter you want to use.
- Click “Send.”
See the Postman Docs for more details about working with forked versions, including how to update your fork when the parent changes.
If Postman is not right for you, there are numerous other REST API testing tools. However, most of these tools do not readily support the private key authentication needed by the API. To get around this, you can use one of the quickstart apps to obtain a temporary access token. It will only be good for a few minutes, and you will need to manually include it in your content headers.
Note
In your API requests, be sure to set the access token and content headers. See
API Basics for details.