Skip to content

Products Get

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

Services \ Products \ Get

Purpose

Load an existing product by Product Code

Basic Usage:

$rezdyApi->products->get($productCode);

Required Parameters

  • string: $productCode

Optional Parameters

  • none

Returns

Throws

Code Example

use Rezdy\RezdyAPI;

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

$productCode = 'P12345';

// Send the Product request to the API
$response = $rezdyAPI->products->get($productCode);

// View the response
echo $response;

Clone this wiki locally