MCPcopy Create free account
hub / github.com/Necriso/ScriptableWidgets / apiURL

Function apiURL

guenstigsteTankstelle.js:32–32  ·  view source on GitHub ↗
(location, radius, apiKey, oilType)

Source from the content-addressed store, hash-verified

30const greyTextColor = Color.dynamic(new Color('000000'), new Color('BBBBBB'))
31
32const apiURL = (location, radius, apiKey, oilType) => `https://creativecommons.tankerkoenig.de/json/list.php?lat=${location.latitude.toFixed(3)}&lng=${location.longitude.toFixed(3)}&rad=${radius}&sort=price&type=${oilType}&apikey=${apiKey}`
33
34let station = await loadStation(apiKey, radius, oilType)
35let widget = await createWidget(station)

Callers 1

loadStationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected