Created
February 8, 2017 14:47
-
-
Save hideokamoto/fd4c3aa0cb1955082b54496bc0dde74f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/bash | |
| APIKEY=${1} | |
| if [ "${APIKEY}" = "" ]; then | |
| echo "Please set recruit api key" | |
| exit 1 | |
| fi | |
| AREA=${2} | |
| if [ "${AREA}" = "" ]; then | |
| echo "Please set search keyword" | |
| exit 1 | |
| fi | |
| curl "http://webservice.recruit.co.jp/hotpepper/large_area/v1/?key=${APIKEY}&format=json" | jq ".results.large_area[] | select(.service_area.name == \"${AREA}\")" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment