Subversion Repositories cheapmusic

Rev

Rev 41 | Rev 50 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 41 Rev 43
Line 284... Line 284...
284
	$arr = [];
284
	$arr = [];
285
 
285
 
286
// Check to see if the request found any results
286
// Check to see if the request found any results
287
	if (isset($result->TotalMatches)) {
287
	if (isset($result->TotalMatches)) {
288
  // If the response was loaded, parse it and store in array
288
  // If the response was loaded, parse it and store in array
289
		foreach ($result->item as $item) {
289
		foreach ($result->link as $link) {
-
 
290
		    echo "NULL";
-
 
291
		    echo "," . $link->advertisername;
-
 
292
		    echo "," . $link->offerstartdate;
-
 
293
		    echo "," . $link->offerenddate;
-
 
294
		    echo ",\"" . $link->offerdescription . "\"";
-
 
295
		    echo "," . $link->couponcode;
-
 
296
		    echo "," . str_replace('http://', 'https://', (string)$link->clickurl);
-
 
297
		    echo "," . str_replace('http://', 'https://', (string)$link->impressionpixel);
-
 
298
		    echo "<br>";
290
		}
299
		}
291
	}
300
	}
292
// If the response does not indicate 'Success,' log the error(s)
301
// If the response does not indicate 'Success,' log the error(s)
293
	else {
302
	else {
294
		foreach ($result->Errors as $error) {
303
		foreach ($result->Errors as $error) {