2017 © Pedro Peláez
 

library skroutz

A PHP7 library for skroutz.gr API

image

ilazaridis/skroutz

A PHP7 library for skroutz.gr API

  • Monday, February 6, 2017
  • by ilazaridis
  • Repository
  • 1 Watchers
  • 2 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 10 % Grown

The README.md

Skroutz

Travis Latest Stable Version Minimum PHP Version, (*1)

PHP7 Client for skroutz API, (*2)

Installation

composer require ilazaridis/skroutz

Usage Examples

Once you have an Identifier and a Secret you are ready to generate an access token:, (*3)

<?php

require_once 'vendor/autoload.php';
use ilazaridis\skroutz\Client as Client;

$client = new Client('identifier', 'secret');

and consume it:, (*4)

print_r($client->category('40')->fetch());  // get category with id=40

fetch(bool $decode = true, string $apiVersion = '3.1') will return an associative array using latest version of api by default. You can pass a boolean and a string if you want to change these values. - List the children categories of a category, (*5)

$client->category('40')->children()->fetch()
  • Retrieve a single shop location
$client->shop('452')->location('2500')->fetch()
  • Retrieve manufacturer's categories order by name
$client->category('25')->manufacturers()->params(['order_by' => 'name', 'order_dir' => 'asc'])->fetch()

The query string is passd as associative array using the params() method. In case we have multiple values of the same parameter (i.e. filter_ids[]), we are passing them as comma seperated values: - Filter SKUs of specific category using multiple filter ids, (*6)

$client->category('40')->skus()->params(['filter_ids[]' => '355559,6282'])->fetch()

Note

Some of the API methods have not been implemented due to access restriction. Currently, the acquired permission level is public and everything on that level was implemented., (*7)

The Versions

06/02 2017

dev-master

9999999-dev

A PHP7 library for skroutz.gr API

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Ioannis Lazaridis

05/02 2017

1.0.0

1.0.0.0

A PHP7 library for skroutz.gr API

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Ioannis Lazaridis