Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. $client = new SoapClient('http://magentohost/api/soap/?wsdl');
  2.  
  3. // If somestuff requires api authentification,
  4. // then get a session token
  5. $session = $client->login('apiUser', 'apiKey');
  6.  
  7. $result = $client->call($session, 'customer.info', '2');
  8. var_dump($result);
  9.  
  10. // If you don't need the session anymore
  11. //$client->endSession($session);
  12.  
  13. $proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
  14. $sessionId = $proxy->login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary
  15.  
  16. $result = $proxy->customerCustomerInfo($sessionId, '2');
  17. var_dump($result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement