Skip to content

Regular SDK

Morten Harders edited this page Apr 17, 2018 · 7 revisions

Structure

The regular API SDK uses strictly defined classes to wrap the data from the API.

Definition

$api refers to an instance of the API singleton
$<classname> refers to any instance of the class matching the variable name

Main Classes

Servicepoint

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

Clone this wiki locally