Retrieves a list of 'default' images for a particular part.
<!-- getDefaultPartImages() --> <?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>Default Part Images</h2>"; $listofDefaultImages = $Part->getDefaultPartImages(); // use getDefaultPartImages() which gets an array of images. foreach($listofDefaultImages as $imageObj){ // step through the list of default images echo $imageObj->getPath(); // display each default image's path property using the getter. echo "<br />"; } ?>