2017 © Pedro Peláez
 

library ccpclient

Cloud Commerce Pro API Client for Laravel

image

aaronkaa/ccpclient

Cloud Commerce Pro API Client for Laravel

  • Tuesday, June 12, 2018
  • by aarcarr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 25 % Grown

The README.md

CCP API Client

Cloud Commerce Pro API Client for Laravel, (*1)

This package is in its very early stages but will be added to frequently, feel free to get in touch to make suggestions and all pull requests are welcome., (*2)

Getting Started

Install with composer, (*3)

composer require aaronkaa/ccpclient

Publish the config with :, (*4)

php artisan vendor:publish

Add your 'brand_id' and 'hash' to config/ccpapi.php file and that should be everything set., (*5)

Usage

At the minute, each seperate service has its own object :, (*6)

use AKaa\CCPClient\Client\ProductClient;
use AKaa\CCPClient\Client\ProductRangeClient;
use AKaa\CCPClient\Client\ProductOptionClient;
use AKaa\CCPClient\Client\OrderClient;
use AKaa\CCPClient\Client\PaymentClient;
use AKaa\CCPClient\Client\CustomerClient;

To use the API, get an instance of the service youd like to use, (*7)

$productClient = new ProductClient();

$result = $productClient->getProductByID(12345);

The current return from this would be the standard response from CCP with a top level result object (ie. 'getProductByManufacturerSKUResult' from getProductByManufacturerSKU) and 'Success', 'ErrorLevel', 'Content' and 'Errors' below this., (*8)

The Versions

12/06 2018

dev-master

9999999-dev

Cloud Commerce Pro API Client for Laravel

  Sources   Download

The Requires

 

by Aaron Carr