Retrieves the image path for the part.
<!-- getPartImage() --> <?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. $Part->setPartID(11000); // set the required dependency of partID to get the Part's image. $imagePath = $Part->getPartImage("a","Grande"); // call getPartImage() and use optional parameters to get an "a" view that is "grande" in size. echo "<h2>Part 11000's Grande A-Style Image</h2>"; echo '<img src="' . $imagePath . '" />'; // pass the path into the src of the image tag. echo "<br />"; ?>