项目作者: saintsweeto

项目描述 :
A PHP wrapper for NZ Post API
高级语言: PHP
项目地址: git://github.com/saintsweeto/nz-post.git
创建时间: 2020-09-06T23:10:09Z
项目社区:https://github.com/saintsweeto/nz-post

开源协议:MIT License

下载


NZ Post

A PHP wrapper for NZ Post API

ParcelAddress API

API specification summary

Initialization

  1. $parcel = new ParcelAddress(CLIENT_ID, CLIENT_SECRET);

Search for address

Returns a list of suggested domestic addresses for an address fragment.

  1. $parcel->searchForAddress(address, count);

Get address detail by address id

Returns the detailed information for a single domestic address identifier.

  1. $parcel->getAddressByAddressId(address_id');

Get address detail by dpid

Returns the detailed information for a single dpid.

  1. $parcel->getAddressByDpid(dpid);

Domestic suburbs suggestion

Returns a list of suggested domestic suburbs for a suburb fragment.

  1. $parcel->searchForSuburbs(address, count);

Collection locations

Returns a list of parcel collection points nearest to the coordinates provided.

  1. $parcel->getCollectionLocations(lat, long, count);

Search for international address

Returns a list of suggested addresses for a given country code and address fragment.

  1. $parcel->searchForInternationalAddress(address, country_code, count);

Get international address detail

Returns the detailed information for a single international address identifier.

  1. $parcel->getInternationalAddress(address_id);

Australian address lookup

This resource is intended to be used in conjunction with the Get International Address Detail resource.

  1. $parcel->getAustralianAddress(address_id);