Skip to content

Instantly share code, notes, and snippets.

@aidvu
Last active December 18, 2015 09:29
Show Gist options
  • Save aidvu/5761252 to your computer and use it in GitHub Desktop.
Save aidvu/5761252 to your computer and use it in GitHub Desktop.
SugarCRM Soap
<?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