Last active
December 18, 2015 09:29
-
-
Save aidvu/5761252 to your computer and use it in GitHub Desktop.
SugarCRM Soap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$_sessionId = null; | |
$_sc = new SoapClient( | |
null, | |
array( | |
'location' =>'http://127.0.0.1/6_5_x/ent/sugarcrm/soap.php', | |
'uri' => 'http://www.sugarcrm.com/sugarcrm', | |
'trace' => true, | |
) | |
); | |
$loginReply = $_sc->login( | |
array( | |
'user_name' => 'admin', | |
'password' => md5('admin'), | |
'version' => '.01' | |
) | |
); | |
print_r($loginReply); | |
$_sessionId = $loginReply->id; | |
$results = $_sc->get_entry( | |
$_sessionId, | |
'Reports', | |
'34cf3d43-d1e4-66fa-e24d-51b5adc2c9e0' | |
); | |
print_r($results); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment