Skip to content

Instantly share code, notes, and snippets.

@tristansokol
Last active August 22, 2017 20:14
Show Gist options
  • Save tristansokol/c91be20ff4a78f017a524b4b76405d78 to your computer and use it in GitHub Desktop.
Save tristansokol/c91be20ff4a78f017a524b4b76405d78 to your computer and use it in GitHub Desktop.
<?php
$api_instance = new SquareConnect\Api\CatalogApi();
$object_id = "XXXXXX";
$include_related_objects = true;
try {
$result = $api_instance->retrieveCatalogObject($object_id, $include_related_objects);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CatalogApi->retrieveCatalogObject: ', $e->getMessage(), PHP_EOL;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment