-
Notifications
You must be signed in to change notification settings - Fork 0
Regular SDK
Morten Harders edited this page Apr 17, 2018
·
7 revisions
The regular API SDK uses strictly defined classes to wrap the data from the API.
$api refers to an instance of the API singleton
$<classname> refers to any instance of the class matching the variable name
new Servicepoint()Returned by $api->findeServicepoints(...)
Properties:
-
id: int -
name: string -
distance: int -
address: Address -
coordinates: Coordinates
Distance is only available if the request is made using a complete origin address (country_code, zip_code, city and street). Distance is measured in meters.
new Shipment()Properties:
-
length: int -
width: int -
height: int -
weight: int -
distance: int -
address: Address -
coordinates: Coordinates