Retrieves a list of parts, given a list of comma seperated part ID's.
<!-- getPartsByList() --> <?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>Parts By List 11000, 12000, 13000</h2>"; $listofParts = $Part->getPartsByList("11000,12000,13000"); // use getPartsByList() which gets an array of parts. foreach($listofParts as $partObj){ // step through the list of part objects echo $partObj->getShortDesc(); // display each part's shortDesc property using the getter. echo "<br />"; } ?>