PHP code example of beautinow / dearapi

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

    

beautinow / dearapi example snippets


$dear = UmiMood\Dear\Dear::create("DEAR-ACCOUNT_ID", "DEAR-APPLICATION-KEY");


$products = $dear->product()->get([]);
$accounts = $dear->account()->get([]);
$me = $dear->me()->get([]);



$response = $dear->product()->create($params); // see docs for available parameters



$response = $dear->product()->update($guid, $params); // see docs for available parameters



$response = $dear->product()->delete($guid, []);