Happpi PHP Library

getSPGridData()

Retrieves the Legacy SitePro grid data for a single part. (UPC,weight,etc)

Return Type

CurtSPGridData

Required Parameters

    None

Optional Parameters

    None

Dependencies

    $part->setPartID(int $value)

Example:

<!-- getSPGridData() -->
<?php
	require_once('libraries/happpi/LoadAll.php'); // points to the LoadAll.php file for loading the library.

	// once the library is required, you can now use one of the main "interaction" classes.
	// These interaction classes contain methods that get information from our REST API and
	// converts them to PHP objects for you to use.
	$Part = new CurtPart(); // create new part object to gain access to its functions.

	echo "<h2>SitePro Legacy Grid Data for part 11000</h2>";
	$Part->setPartID(11000);
	$SPGridData = $Part->getSPGridData(); // use getSPGridData to get an SPGridData object
	echo "UPC: " . $SPGridData->getUpc();
?>