An example Turn.io webhook integration on Replit for location pins. This will read location pins and return the weather at the given coordinates.
This Replit assumes the following:
- You have gone through the webhooks example and are comfortable with how to get an authentication for Turn and set it up as a secret in Repl.it
- Click the
Run on Repl.it
button above and install this example into your Repl.it workspace. - Get a Turn token and add it as a secret called
TOKEN
in Repl.it - Sign-up for a free WeatherApi.com account and obtain an API token, add that as a secret called
WEATHER_API_TOKEN
in Repl.it - Set up the webhook in Turn using the URL generated for your workspace by Repl.it.
- Send a message with a location pin to your number and receive information about the current weather at your location.