Skip to content

Categories List

Brad Ploeger edited this page Apr 3, 2019 · 3 revisions

Services \ Categories \ List

Purpose

Load all products within a category.

Basic Usage:

$rezdyApi->categories->list($categoryId, $optionalSettings);

Required Parameters

  • integer: $categoryId

Optional Parameters

  • array: $optionalSettings

Returns

Throws (with errors)

Code Example

use Rezdy\RezdyAPI;

// Initialize the API
$rezdyAPI = new RezdyAPI('your api key');

// The Category Id to search
$categoryId = 123456;

// Set search options
$options = [ 'limit' => 25 ];

// Send the request to the API
$response = $rezdyAPI->categories->list($categoryId, $options);

// View the Response
echo $response;

Clone this wiki locally