EvilFreelancer/rezdy-api-php

View on GitHub
examples/products.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
require_once __DIR__ . '/../vendor/autoload.php';

use Dotenv\Dotenv;

if (file_exists(__DIR__ . '/.env')) {
    Dotenv::create(__DIR__)->load();
}

// Instantiate client
$client = new \Rezdy\Client(getenv('API_KEY'));

// Get list of products
$products = $client->products->search()->exec();
var_dump($products);