Last active
December 19, 2018 18:14
-
-
Save ilgooz/faf69e18212a214c45bb3d163d13aaa2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: location | |
description: Find Geo Location of an IP Address | |
configuration: | |
env: | |
# We're using MaxMind as a geo location database provider but it can be | |
# changed to another one by overwriting env variables in the deployment time. | |
# Note that service is responsible to respect to these env variables. | |
- PROVIDER=maxmind | |
tasks: | |
locateIP: | |
inputs: | |
ip: | |
type: String | |
outputs: | |
success: | |
data: | |
location: | |
city: | |
type: String | |
country: | |
type: String | |
error: | |
data: | |
message: | |
type: String |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment