retargeting/rest-api-client

There is no license information available for the latest version (1.0.0) of this package.

Retargeting REST API Client

1.0.0 2019-02-18 16:02 UTC

This package is auto-updated.

Last update: 2025-05-19 12:17:10 UTC


README

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);