2017 © Pedro Peláez
 

library api-sdk

Real.de onlineshop API SDK for PHP

image

hitmeister/api-sdk

Real.de onlineshop API SDK for PHP

  • Thursday, July 12, 2018
  • by aazon
  • Repository
  • 3 Watchers
  • 3 Stars
  • 11,359 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 13 Forks
  • 3 Open issues
  • 34 Versions
  • 10 % Grown

The README.md

Real.de Onlineshop - API SDK for PHP Build Status

Latest Stable Version Coverage Status Total Downloads, (*1)

PHP client for Real.de Onlineshop API., (*2)

Install

Via Composer, (*3)

``` bash $ composer require hitmeister/api-sdk, (*4)


Via GitHub ``` bash $ git clone git@github.com:hitmeister/api-sdk-php.git

Quickstart

This section will give you a quick overview of the client and how the major functions work., (*5)

Create client

Before starting, you will need the API keys from your API settings page., (*6)

Include the autoloader in your main project (if you haven’t already), and instantiate a new client., (*7)

require 'vendor/autoload.php';

use Hitmeister\Component\Api\ClientBuilder;

$client = ClientBuilder::create()
    ->setClientKey('YOUR_CLIENT_KEY')
    ->setClientSecret('YOUR_CLIENT_SECRET')
    ->build();

Namespaces overview

The client has a number of "namespaces", which generally expose API functionality. The namespaces correspond to the various API endpoints. This is a complete list of namespaces:, (*8)

Namespace Functionality
attributes() Retrieve the attributes data
categories() Retrieve the categories data
claimMessages() Post messages to the claim DEPRECATED, use ticketMessages
claims() Retrieve and manage the claims DEPRECATED, use tickets
importFiles() To send inventory data for multiple items at once
items() Retrieve the product data
orders() Retrieve the orders data
orderInvoices() Retrieve and manage order invoices data
orderUnits() Retrieve and manage your order units
productData() Upload or change your product data for an EAN
productDataStatus() Retrieve the status of your product data
reports() Generate and retrieve summary reports
returns() Retrieve the returns from your sales
returnUnits() Accept, reject or repair returns from your sales
shipments() Add shipment information to order units
shippingGroups() Retrieve the shipping groups data
status() System status
subscriptions() Push notifications management
ticketMessages() Post messages to the tickets
tickets( ) Manage tickets, i.e. N-to-N relations between order-units and claims
warehouses() Warehouses management
units() To upload inventory data one item at a time

Retrieve the categories data

You can search for categories:, (*9)

$categories = $client->categories()->find('handy');
foreach ($categories as $category) {
    echo "Category ID: {$category->id_category}\n";
    echo "Category Name: {$category->name}\n";
}

Or get the information about one of them:, (*10)

$category = $client->categories()->get(1);
echo "Category ID: {$category->id_category}\n";
echo "Category Name: {$category->name}\n";

Retrieve the product data

Search for items:, (*11)

$items = $client->items()->find('iphone');
foreach ($items as $item) {
    $eans = implode(',', $item->eans);
    echo "Item ID: {$item->id_item}\n";
    echo "Category ID: {$item->id_category}\n";
    echo "Title: {$item->title}\n";
    echo "EANs: {$eans}\n";
}

Also you can find the items by EAN:, (*12)

$items = $client->items()->findByEan('0885909781652');

Send inventory data

According to the API documentation you have two options:, (*13)

To upload your product data as CSV file

// Post the task to import your file. You will have the ID of the task.
$importFileId = $client->importFiles()
    ->post('http://www.example.com/my_products.csv', 'PRODUCT_FEED');

// Retrieve the information about your task
$data = $client->importFiles()->get($importFileId);
echo "URL: {$data->uri}\n";
echo "Status: {$data->status}\n";

To update a single unit

// $result will be true or false
$result = $client->units()->update(10, ['condition' => 'new']);

Testing

bash $ composer test, (*14)

License

The MIT License (MIT). Please see License File for more information., (*15)

The Versions

12/07 2018

dev-master

9999999-dev https://www.real.de/api/v1/

Real.de onlineshop API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers
by Real.de Onlineshop Developers

api sdk hitmeister real.digital real.de real-digital

12/07 2018

1.23.0

1.23.0.0 https://www.real.de/api/v1/

Real.de onlineshop API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Real.de Onlineshop Developers

api sdk hitmeister real.digital real.de real-digital

12/07 2018

dev-develop

dev-develop https://www.real.de/api/v1/

Real.de onlineshop API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers
by Real.de Onlineshop Developers

api sdk hitmeister real.digital real.de real-digital

29/05 2018

1.22.0

1.22.0.0 https://www.real.de/api/v1/

Real.de onlineshop API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Real.de Onlineshop Developers

api sdk hitmeister real.digital real.de real-digital

25/05 2018

dev-update-composer-file

dev-update-composer-file https://www.real.de/api/v1/

Real.de onlineshop API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Real.de Onlineshop Developers

api sdk hitmeister real.digital real.de real-digital

24/04 2018

1.21.0

1.21.0.0 https://www.real.de/api/v1/

Real.de onlineshop API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Real.de Onlineshop Developers

api sdk hitmeister real.digital real.de real-digital

24/04 2018

dev-DEV-9086-add-forgotten-endpoints

dev-DEV-9086-add-forgotten-endpoints https://www.real.de/api/v1/

Real.de onlineshop API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Real.de Onlineshop Developers

api sdk hitmeister real.digital real.de real-digital

20/04 2018

1.19.2

1.19.2.0 https://www.real.de/api/v1/

Real.de onlineshop API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Real.de Onlineshop Developers

api sdk hitmeister

13/03 2018

1.19.1

1.19.1.0 https://www.real.de/api/v1/

Real.de onlineshop API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Real.de Onlineshop Developers

api sdk hitmeister

12/03 2018

1.19.0

1.19.0.0 https://www.real.de/api/v1/

Real.de onlineshop API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Real.de Onlineshop Developers

api sdk hitmeister

05/02 2018

1.17.3

1.17.3.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

15/11 2017

1.17.2

1.17.2.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

27/10 2017

1.17.1

1.17.1.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

27/10 2017

dev-can-not-use-embedder-parameter-for-order-unit

dev-can-not-use-embedder-parameter-for-order-unit https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

26/10 2017

1.17.0

1.17.0.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

26/10 2017

dev-DEV-7415-imports-endpoint-erweitern-um-a

dev-DEV-7415-imports-endpoint-erweitern-um-a https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

26/10 2017

1.16.0

1.16.0.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

25/10 2017

dev-DEV-7349-add-filter-by-id-order-unit

dev-DEV-7349-add-filter-by-id-order-unit https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

20/10 2017

1.15.0

1.15.0.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

03/08 2017

1.13.4

1.13.4.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

28/06 2017

1.13.3

1.13.3.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

10/05 2017

1.13.2

1.13.2.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

10/05 2017

1.13.1

1.13.1.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

10/05 2017

dev-request_id_in_the_response

dev-request_id_in_the_response https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

10/05 2017

1.13.0

1.13.0.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

18/04 2017

1.11.1

1.11.1.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

04/04 2017

1.11.0

1.11.0.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

07/07 2016

1.7.0

1.7.0.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

01/07 2016

1.6.0

1.6.0.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

03/06 2016

dev-rename-delivery-time-expires

dev-rename-delivery-time-expires https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

05/04 2016

0.1.3

0.1.3.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

15/03 2016

0.1.2

0.1.2.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

26/01 2016

0.1.1

0.1.1.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister

23/09 2015

0.1

0.1.0.0 https://www.hitmeister.de/api/v1/

Hitmeister API SDK for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hitmeister GmbH Developers

api sdk hitmeister