Setup a dev environnement

Install composer

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. Install composer

Install Hiboutik libs

The Hiboutik PHP library can be installed with Composer.

php composer.phar require hiboutik/hiboutikapi

Create your first script

<?php

require_once("vendor/autoload.php");

// Set your Hiboutik credentials here
$account = "faq";
$user = "___my_user_email___";
$key = "___my_user_api_key___";

$hiboutik = new \Hiboutik\HiboutikAPI($account, $user, $key);

// To list all active products on your account:
$products = $hiboutik->get("/products/");
if ($hiboutik->request_ok) {

foreach ($products as $product) {
print("<br />".$product['product_model']);
}

} else {
  if (isset($products['details']['error_description'])) {
    print $products['details']['error_description'];
  } else {
    print $products['error_description'];
  }
}

Envoyez nous un message

Cliquez ici

  • FR +33 (0)1 48 78 40 06
  • FR +41 (0)21 519 00 17
  • FR +32 (0)2 318 82 77
  • FR +34 (0)912 69 39 94