Skip to content

Categories Search

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

Services \ Categories \ Search

Purpose

Load all categories matching a search request

Note: If the search string is empty, all categories will be returned. This will only return categories belonging to the company doing the request.

Basic Usage:

$rezdyApi->categories->search($request);

Required Parameters

Optional Parameters

  • none

Returns

Throws (with errors)

Code Example

use Rezdy\RezdyAPI;
use Rezdy\Requests\CategorySearch;

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

// Create the array of category search parameters 
$searchParams = [ 'search' => 'Other' ];

// Create the CategorySearch request
$search = new CategorySearch($searchParams);

// Send the CategorySearch request to the API
$response = $rezdyAPI->categories->search($search);

// View the Response
echo $response;

Clone this wiki locally