2017 © Pedro Peláez
 

library dandomain-api

Dandomain API Wrapper

image

loevgaard/dandomain-api

Dandomain API Wrapper

  • Friday, March 9, 2018
  • by loevgaard
  • Repository
  • 1 Watchers
  • 0 Stars
  • 737 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 36 Versions
  • 22 % Grown

The README.md

Dandomain API PHP Wrapper

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score, (*1)

This is a PHP wrapper for the Dandomain API. Internally it uses Guzzle to send requests., (*2)

Installation

composer require loevgaard/dandomain-api 

Usage

<?php
use Loevgaard\Dandomain\Api\Api;

$api = new Api('https://www.your-shop.dk', 'insert api key');

// Get modified products
$dateStart = \DateTime::createFromFormat('Y-m-d', '2018-01-01');
$dateEnd = new \DateTime();

$modifiedProductCount = $api->productData->countByModifiedInterval($dateStart, $dateEnd);
$pageSize = 100;
$pages = ceil($modifiedProductCount / $pageSize);

for($page = 1; $page <= $pages; $page++) {
    $products = $api->productData->getDataProductsInModifiedInterval($dateStart, $dateEnd, $page, $pageSize);
}

The Versions

08/07 2015

dev-legacy

dev-legacy

Dandomain API

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

08/07 2015

1.0.0

1.0.0.0

Dandomain API

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires