Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 902 Bytes

File metadata and controls

38 lines (26 loc) · 902 Bytes

Gilt API PHP

gilt_api_php provides a PHP client for the Gilt Groupe APIs.

The Gilt Groupe APIs give developers the ability to build applications that display information about Gilt Groupe's upcoming sales and the products available in those sales.

Requirements

PHP 5.2.7+

PHPUnit 3.4.5+

Documentation

Usage

require 'gilt_api.php';
require 'lib/http_get.php';

$api_key = <your_gilt_api_key>;
$http_get = new HttpGet();
$gilt = new Gilt($api_key, $http_get);
$sales = $gilt->getActiveSales();

Demo

The demo PHP app allows browsing of Gilt sales and products.

The app was built using the Slim framework and the Twitter bootstrap library.

Edit demo/index.php to set your Gilt API key.