Skip to content

retargeting/rest-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retargeting REST API Client

composer require retargeting/rest-api-client
<?php

include "vendor/autoload.php";

use Retargeting\Client;

// use your REST API KEY from Retargeting Admin Panel
$client = new Client("REST_API_KEY");

// set response format to JSON
$client->setResponseFormat("json");

// not decode the string
$client->setDecoding(false);

// check discount code
$response = $client->discount->check("DISCOUNT_CODE");

var_dump($response);