Clone our repo and install the required dependencies
Set the environment variables
Run locally
http://localhost:7070
.Obtain a bearer token to access FlatPeak API
account_id:api_key
and make a request to create-a-bearer-token endpoint.
Obtain a token to access Connect
callback_uri
), we recommend using https://webhook.site, but you can use any other service.Run the Connect app
http://localhost:7070?fp_cot=cot_***
. Replace **cot_ with the connect_token
. The resulting URI may look similar to this example:Follow the flow
Receive callback
callback_uri
you specified:Exchange completed Connect token for Location ID
connect_token
as a reference, call exchange-connect-token endpoint to obtain a location_id
that represents a permanent identifier of a property address in FlatPeak. In the future you will store it in your database in reference to the physical location of your customer’s property.Get tariff rates