PHP code example of every / akeneo-api

1. Go to this page and download the library: Download every/akeneo-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

every / akeneo-api example snippets




very\Akeneo\Api;
use Every\Akeneo\Api\Endpoint;

$settings = new Api\Settings(
    'http://akeneohost.com', // Akeneo Host
    'myuser',                // User Username
    'mypass',                // User Password
    'myclientid',            // Client ID
    'mysecret'               // Secret
);
$auth = new Api\Auth($settings);
$client = new Api\Client($auth);
$product = new Endpoint\Product($client);

var_dump($product->get('product_sku'));