Skip to content

Instantly share code, notes, and snippets.

@tristansokol
Last active August 22, 2017 19:15
Show Gist options
  • Save tristansokol/21d981fd552287683ce08ff8874ca222 to your computer and use it in GitHub Desktop.
Save tristansokol/21d981fd552287683ce08ff8874ca222 to your computer and use it in GitHub Desktop.
<?php
$location_id = 'XXXXXXXX';
$item_id = "XXXXXXXXX"; // string | The item's ID.
$api_instance = new SquareConnect\Api\V1ItemsApi();
try {
$result = $api_instance->retrieveItem($location_id, $item_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling V1ItemsApi->retrieveItem: ', $e->getMessage(), PHP_EOL;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment