Skip to content

Instantly share code, notes, and snippets.

@marcus-crane
Created June 14, 2018 21:38
Show Gist options
  • Save marcus-crane/1535ff40822d6609beb77da267132236 to your computer and use it in GitHub Desktop.
Save marcus-crane/1535ff40822d6609beb77da267132236 to your computer and use it in GitHub Desktop.
Bash postcode checker [WIP]
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