retargeting / rest-api-client
Retargeting REST API Client
Installs: 3 878
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.4.0
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);