nickcheek / atdconnect
API Wrapper for ATD
dev-master
2021-10-14 15:56 UTC
This package is auto-updated.
Last update: 2024-10-14 22:17:17 UTC
README
PHP Soap API wrapper for American Tire Distributor that integrates WSS security in to the header of the soap call.
Installation
You can install the package via composer:
composer require nickcheek/atdconnect
Usage
Add the library to the top of your controller
use \Nickcheek\Atdconnect\Atdconnect;
Add the ATD credentials in config
'client'=> 'client_name', 'user' => 'your_username', 'pass' => 'your_password', 'location' => 'your_location_id'
set your location and declare your variables
$client = new Atdconnect(); $response = $client->Brand()->getStyle('goodyear'); return $response
You can also use the array builder functions
$client = new Atdconnect(); $search = $client->setSizeSearch('3055520'); return $client->Product()->getProductByCriteria($search);
Available Methods
Location
getLocationByCriteria(); getLocationCutoffTimes(); getDistributionCenter($distributioncenter);
Brand
getBrand($group); getStyle($brand);
Products
getProdBrand($group); getProductByCriteria(); getProductByKeyword();
Order
placeOrder(); previewOrder();
Status
getOrderDetail(); getOrderStatusByCriteria();
Vehicle
getVehicleYear(); getVehicleMake($year); getVehicleModel($year,$make); getVehicleTrim($year,$make,$model); getVehicleTrimOptions($year,$make,$model,$trim); getVehiclePlusSizes($year,$make,$model,$trim); getProductByFitment($year,$make,$model,$trim,$option); getVehicleByVehicleId($vID); getVehicleByLicensePlate($num,$state); getVehicleByVIN($vin)
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email nick@nicholascheek.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.