PHP code example of azoyagroup / api-sdk

1. Go to this page and download the library: Download azoyagroup/api-sdk 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/ */

    

azoyagroup / api-sdk example snippets




use Azoya\API\SDK;
$apiUrl      = 'azoya_api_url';
$provideCode = 'your_provide_code_here';
$apiKey      = 'your_api_key_here';
$apiSecret   = 'your_api_secet_here';
$sdk = new SDK($apiUrl,$provideCode,$apiKey,$apiSecret);

$response = $sdk->getToken();
print_j($response);
$token = $response["token"];

$params = [
    'items' => [{
         "sku": "test sku",
         "name": "test name",
         // other "Error Product Create: " . $e->getMessage();
}

$params = [
    'order_status' => 'processing',
    'per_count' => 50,
    // other {
    echo "Error Order Search: " . $e->getMessage();
}