api - Using Ebay php Search Products -


I have a project where I need access to eBay's product list based on keyword search, I am just trying to get my head around eBay.

Ok so far I started by signing up for eBay Developer login, I have done all the keys of my ID etc.

And downloaded PHP code sample because this is what I'm going to use.

OK, all my details have been entered and I want to call GetSearchResults.

Every time I get this error, I get an error below.

  Undefined property: easy :: $ SearchResultItemArray  

Can someone help me with it or they can talk to me a working php sdk Is the right direction that I can use for a demonstration of search results?

Here is the code taken from the eBay developer

  & lt; Php / ensure that the path contains the current directory // to ensure that the samples ini_set ('include_path', ini_get ('include_ path'). ':.'); // Load common helper classes for ELAP API Need_once 'eBaySoAP.php'; // Load developer-specific configuration data from INI file $ config = parse_ini_file ('ebay.ini', true); $ Site = $ config ['settings'] ['site']; $ Compatibility expansion = $ config ['settings'] ['compatibility level']; $ Dev = $ config [$ site] ['devId']; $ App = $ config [$ site] ['appId']; $ Cert = $ config [$ site] ['cert']; $ Token = $ config [$ site] ['authToken']; $ Location = $ config [$ site] ['Gateway SOAP']; // session $ session = create and configure new base ($ dev, $ app, $ cert); $ Session- & gt; Token = $ token; $ Session- & gt; Site = 1; // 100 = eBay Motors $ session- & gt; Location = $ location; // Make a series of GetSearchResults API calls and try the print result {$ client = new eBaySOAP ($ session); // Find 10 iPods and your title $ params = array ('Version' = & gt; $ compatibilityLevel, 'query' => 'ipod', 'pagination' = & gt; array ('EntriesPerPage' = & gt; 10) Print); $ Result = $ client- & gt; GetSearchResults ($ params); Print "& lt; east & gt;"; // print_r ($ result); Print "& lt; / pre & gt;"; Forex Currency ($ result-> as SearchResultItemArray $ item) {ebb $ item, "& lt; br>; \ n"; } Print "& lt; p & gt; --- & lt; / p & gt; \ n"; // Find 10 passenger vehicles (range id 6001) within 10 miles of ZIP code 95125 // Arohan distance $ params = array ('version' = & gt; $ compatibilityLevel, 'query' = & gt; '* ',' RangeID '= & gt; 6001,' proximity search '= & gt; array (' MaxDistance '=> 10,' PostalCode '=> 95125),' Pagination '=> EntriesPerPage '=> 10),' Order '= & gt; SortByDistanceAsc',); $ Result = $ client- & gt; GetSearchResults ($ params); Forex Currency ($ Result-> Search-ResoluteMire-> Selection-Regalmatum as $ item) {Print- $ item-> Item- & gt; Title "& lt; br & gt; \ n"; } Print "& lt; p & gt; --- & lt; / p & gt; \ n"; // Learn the range of all passenger vehicles (range id 6001) $ params = array ('version' = & gt; $ compatibility life, 'question' = & gt; '*', 'range id =' 6001, 'Total' = & gt; true;); $ Result = $ client- & gt; GetSearchResults ($ params); $ Total = number_format ($ result-> endorsement-> TotalNumberOfEntries); Print "There are total passenger vehicles for sale on eBay Motors & lt; br & gt; \ n"; } Hold (SOAPFault $ F) {print $ F; // error handling} // reduce the bottom to see the soap envelope // print "request: \ n". $ Client- & gt; __getLastRequest () "\ N"; // print "response: \ n". $ Client- & gt; __getLastResponse () "\ N"; ? & Gt;  

thanks

I had a similar problem and I found it :

Important: GetSearchResults and GetCategoryListings are now deprecated and are no longer available. If you have apps that use calls, please migrate your search function to Search API. For new applications, please start with Finding API.


Comments