0

我正在尝试使用 Exact Synergy REST Web 服务将个人照片和员工上传到 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]
            ]);

是否可以将图像上传到同一个网络服务?有一些关于网络服务的信息:http ://www.exactsoftware.com/docs/DocView.aspx?DocumentID=%7bd2dcb5be-d6cc-4e95-9bb4-b3333bc73dde%7d&NoHeader=1&NoSubject=1

4

0 回答 0