如何将SuiteCRM Web集成到Php ..的潜在客户表单?

时间:2018-12-12 07:12:30

标签: php

<?php 
$client = new SoapClient("http://localhost/suiteCRM/service/v2/soap.php?wsdl");
$response = $client->__soapCall("login", array(
    "user_auth" =>
    array(
        'user_name' => 'admin',
        'password' => md5('223311'),
        'version' => "0.1",
    ),
    "application_name"=>""
        )
        );
$session_id=$response->id;
echo"Session ID".$session_id;
?>
  

在我连接它时出现404错误,我需要解决方案如何将表单值存储到suitecrm

1 个答案:

答案 0 :(得分:0)

您应该使用rest而不是SOAP。

理想情况是您的URL。

http://localhost/suiteCRM/service/v4/rest.php