Please first visit basemaps to be automatically allocated a 90 day API key.
Source code available at https://github.com/linz/basemaps