· 9 years ago · Jan 27, 2017, 02:24 PM
1<?php
2
3require_once 'sites/all/modules/affiliate_overview/includes/client/ApiClient.php';
4
5$api = ApiClient::factory(PROTOCOL_SOAP, VERSION_DEFAULT);
6
7 $connectId = '123456789';
8 $secretKey = '00000000000000';
9
10 $api->setConnectId($connectId);
11 $api->setSecretKey($secretKey);
12
13 $query = "auto";
14 $searchType = 'phrase';
15 $programs = array(660,10,20,30);
16 $region = NULL;
17 $categoryId = NULL;
18 $programId = array();
19 $hasImages = true;
20 $minPrice = 0;
21 $maxPrice = NULL;
22 $adspaceId = NULL;
23 $page = 0;
24 $items = 10;
25
26 $soap = $api->searchProducts($query, $searchType, $region,
27 $categoryId, $programId, $hasImages, $minPrice,
28 $maxPrice, $adspaceId, $page, $items);
29 print "<pre>";
30 print_r($soap);
31?>