-
Notifications
You must be signed in to change notification settings - Fork 4
Categories Search
Brad Ploeger edited this page Apr 3, 2019
·
2 revisions
Services \ Categories \ Search
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.
$rezdyApi->categories->search($request);- Rezdy\Requests\CategorySearch: $request
- none
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;Rezdy API V1 PHP Wrapper