This sample application shows how you use OAuth2.0 to authenticate with the PlanGrid API and make a batch request to retrieve user profile and first page of projects.
To run locally:
- Clone this repository using
git clone https://github.com/sophatsam/plangrid-sample-connector. - Create a
.envfile in the root directory (copy/rename the existing.env-samplefile). - Modify the contents of the
.envfile to include your client ID, client secret, redirect URI, and port number to use for the web server. (If running locally, ensure that you have supplied PlanGrid with ahttp://localhost:PORTaddress as a redirect URI) - Run
yarn installto install dependencies. - Start your application with
node index.js. - Access your application in the browser via
http://localhost:PORT.