Created
June 14, 2018 21:38
-
-
Save marcus-crane/1535ff40822d6609beb77da267132236 to your computer and use it in GitHub Desktop.
Bash postcode checker [WIP]
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
curl -X GET -G --header "Referer: https://nzpost.co.nz" -d q=1%20Watt%20Street,%20Parnell -d public_api_key=245ae700-0800-4344-82dc-46bce23d09e0 https://address.nzpost.co.nz/api/suggest.json | jq '.addresses[0].FullAddress' | rev | cut -c2-5 | rev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment