This quickstart is a guide on how to interact with our API from a ReactJS frontend.
- Calculates personal carbon emissions based on: utilities, waste, travel, services, what you buy, and more.
cd sustain
npm install
npm startOpens a server on localhost 3000 by default
http://localhost:3000/
Documentation: Must be signed into the developer portal to access.
- "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription."
- Make sure to include our API key in the header of your requests. Found in the developer portal.
{ headers: {
'Ocp-Apim-Subscription-Key': "********"
}}
We accept Pull Requests Special thanks to @ngowran
The sample code is licensed under MIT.
© 2022 Sustain.Life

