You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
2
2
# MyDataHelps REST API Node Quickstart
3
3
4
-
This app is a demonstration of how to access the [MyDataHelps REST API](https://developer.mydatahelps.org/api/) using [Node.js](https://nodejs.org/en/). It gives an example of obtaining an access token and making a simple query to the API. You can use this app for reference, or modify it to test out your own API requests in a development environment.
4
+
This app is a demonstration of how to access the [MyDataHelps REST API](https://developer.mydatahelps.org/) using [Node.js](https://nodejs.org/en/). It gives an example of obtaining an access token and making a simple query to the API. You can use this app for reference, or modify it to test out your own API requests in a development environment.
5
5
6
6
## Prerequisites
7
7
@@ -20,7 +20,12 @@ This is a command-line app in Node.js. To run the app:
20
20
1. Install NodeJS and the Node Package Manager (npm).
21
21
2. Clone this repository.
22
22
3. Copy the file `dotenv.sample` and name the new copy `.env`.
23
-
4. Edit the `.env` file and fill in your project ID, service account name, and private key. See **Prerequisites** above for more information. Be sure to include the begin/end tags “--BEGIN RSA PRIVATE KEY--“ and “--END RSA PRIVATE KEY--" in your private key.
23
+
4. Edit the `.env` file and fill in your project ID, service account name, and private key. See **Prerequisites** above for how to get this information. Be sure to include the begin/end tags “--BEGIN RSA PRIVATE KEY--“ and “--END RSA PRIVATE KEY--" in your private key, and use line breaks, looking something like this:
5. From the application directory, install the necessary npm libraries: `npm install`.
25
30
6. Run the script: `node quickstart.js`.
26
31
@@ -37,10 +42,6 @@ The access token is only valid for a few minutes, but you can copy/paste it into
37
42
38
43
## Troubleshooting
39
44
40
-
If you see an error when running the script, double-check the information in the Prerequisites, particularly the format of the private key. It should include the begin/end tags and line breaks, looking something like this:
0 commit comments