2017 © Pedro Peláez
 

library despatchbaypro_api

Unnoficial dev branch of the DBPApiClient

image

lordvol/despatchbaypro_api

Unnoficial dev branch of the DBPApiClient

  • Tuesday, June 21, 2016
  • by LordVol
  • Repository
  • 1 Watchers
  • 2 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

despatchbaypro_api

Despatch Bay Pro API Client, (*1)

Provided as is., (*2)

Usage


$apiUser = 'your_api_user_string_here'; $apiKey = 'your_api_key_here'; $dbpApiClient = new \DespatchBayProApi\DespatchBayProApiClient($apiUser,$apiKey); // AddressingService $dbpApiClient->addressingService->getDomesticAddressKeysByPostcode('S118RR'); $dbpApiClient->addressingService->getDomesticAddressByLookup('S118RR', 13); $dbpApiClient->addressingService->getDomesticAddressByKey($key); // ShippingService $dbpApiClient->shippingService->getDomesticServicesByPostcode('S118RR'); $dbpApiClient->shippingService->getDomesticServices() $dbpApiClient->shippingService->getShipment($shipmentID) $domesticShipmentDetailsArray = [ 'ServiceID' => $serviceID, 'OrderReference' => $orderReference, 'Contents' => $contents, 'ParcelQuantity' => count($parcels), 'CompanyName' => $companyName, 'ReceiptName' => $receiptName, 'Street' => $street, 'Locality' => $locality, 'Town' => $town, 'County' => $county, 'Postcode' => $postcode, 'RecipientEmail' => $receipientEmail, 'EmailNotification' => (boolval($emailNotification))?1:0, 'DashboardNotification' => (boolval($dashboardNotification))?1:0 ]; $dbpApiClient->shippingService->addDomesticShipment($domesticShipmentDetailsArray); // TrackingService $dbpApiClient->trackingService->getTracking($trackingNumber); // LabelsService $labelSizes = $dbpApiClient->labelsService->getAvailableLabelSizes(); $dbpApiClient->labelsService->setLabelFormat(0); // Warning: this function charges your account! $dbpApiClient->labelsService->getLabels($shipmentID);

The Versions

21/06 2016

dev-dev

dev-dev

Unnoficial dev branch of the DBPApiClient

  Sources   Download

by Avatar LordVol