Skip to content

Instantly share code, notes, and snippets.

@hideokamoto
Created February 8, 2017 14:47
Show Gist options
  • Select an option

  • Save hideokamoto/fd4c3aa0cb1955082b54496bc0dde74f to your computer and use it in GitHub Desktop.

Select an option

Save hideokamoto/fd4c3aa0cb1955082b54496bc0dde74f to your computer and use it in GitHub Desktop.
#!/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