Last active
November 8, 2015 02:31
-
-
Save ex-hota911/9027c34a35e7718530c5 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 | |
| # Variables: | |
| # JALAN_API_KEY - API key of Jalan web service | |
| # Visit https://www.jalan.net/jw/jwp0400/jww0401.do to get new key. | |
| # TO_ADDRES - The address to send mails. | |
| URL="http://jws.jalan.net/APIAdvance/StockSearch/V1/?key=${JALAN_API_KEY}&stay_date=20151121&stay_count=1&room_count=1&adult_num=2&s_area=192002" | |
| set -eux | |
| ( echo ${URL}; curl ${URL} ) | mail -s "Kanazawa no hotel" ${TO_ADDRESS} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment