PHP code example of fordbedia / cj-query

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

    

fordbedia / cj-query example snippets


$cj = new \CJQuery\Src\CjConn([
  '<personal-access-token>',
	'<website-id>'
]);
		
$p = $cj->assignScope('product-search')->addParams(array(
    'keywords' => 'samsung',
    'records-per-page' => 10,
    'page-number' => 1
))->parseXML();

var_dump($p);

$cj = new \CJQuery\Src\CjConn([
  '<perosnal-token>',
  '<website-id>',
]);

return $cj->productSearch(array(
	'keywords' => 'samsung',
	'records-per-page' => 10,
	'page-number' => 1
));

$cj = new \CJQuery\Src\CjConn([
	'<perosnal-token>',
	'<website-id>',
]);
		
return $cj->linkSearch(array(
	'keywords' => 'Hilka - -Heavy Duty Stapler with 800 Staples',
	'advertiser-ids' => 849260
));

$cj = new \CJQuery\Src\CjConn([
	'<perosnal-token>',
	'<website-id>',
]);
		
return $cj->advertiserLookup(array(
	'records-per-page' => 100,
	'page-number' => 1,
	'advertiser-ids' => 'joined'
));