我正尝试使用Exact Synergy REST Web服务将Exact和员工的个人照片上传到Exact Synergy Enterprise。 要更新其他信息,例如:FirstName,LastName等。我使用带有以下代码的Guzzle HTTP:
$type = "POST";
$entity = "Resource"
$json = array(
"FirstName" = "John",
"LastName=" = "Doe"
);
$res = $client->request($type,config('exact.webservice_url').$entity, [
'auth' => [
config('exact.webservice_user'), config('exact.webservice_password'), config('exact.webservice_digest')
],
'headers' => [
'Accept' => 'application/json',
'Content-type' => 'application/json',
'X-HTTP-Method' => 'MERGE',
],
'json' => $json,
['timeout' => 10]
]);
是否可以将图像上传到同一Web服务? 有关Web服务的一些信息,位于:http://www.exactsoftware.com/docs/DocView.aspx?DocumentID=%7bd2dcb5be-d6cc-4e95-9bb4-b3333bc73dde%7d&NoHeader=1&NoSubject=1