GeoffreyHarmuth
7 years agoQrew Captain
Using webhook to trigger API get request
Quickbase uses stupid mapbox - It is currently not supporting our country, so I have a workaround in terms of getting addresses sorted: www.what3words.com
All our customers will have a unique 3 word address that is simply copied and pasted into a single field, I then want to trigger an API request to get the 3 word address translated into GPS co ordinates and entered into "Street 1, Street 2" of the Location type field.
Its pretty simple logic, but I just need help to get the format for the webhook and how to get the info into my table.
The API get request documentation: (https://docs.what3words.com/api/v2/#forward)
Here is the format of the request:
https://api.what3words.com/v2/forward?addr=[myfieldhere]&display=full&format=xml&key=[myapikeyhere]
So in the URL, I can easily use the required markers, however I don't know how to receive the payload back into a field in my record on Quickbase.
Any help here would be appreciated. On or off world.
All our customers will have a unique 3 word address that is simply copied and pasted into a single field, I then want to trigger an API request to get the 3 word address translated into GPS co ordinates and entered into "Street 1, Street 2" of the Location type field.
Its pretty simple logic, but I just need help to get the format for the webhook and how to get the info into my table.
The API get request documentation: (https://docs.what3words.com/api/v2/#forward)
Here is the format of the request:
https://api.what3words.com/v2/forward?addr=[myfieldhere]&display=full&format=xml&key=[myapikeyhere]
So in the URL, I can easily use the required markers, however I don't know how to receive the payload back into a field in my record on Quickbase.
Any help here would be appreciated. On or off world.