Happpi PHP Library


searches for parts related to the search term provided.

Return Type

Array of type: CurtSearchResult

Required Parameters

    search(string $search_term)

Optional Parameters





<!-- Search() -->

	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.
	$Search = new CurtSearchResult(); // create a new Search Result object to gain access to its functions.
	$searchResults = $Search->search("11000"); // call search() and pass in the search term. An array of Search Results are returned.
	foreach($searchResults as $result){ // step through each search result
		echo $result->getPartID(); // display the partID of each search result.
		echo "<br />";