【发布时间】:2018-09-25 13:12:50
【问题描述】:
当我使用 updateRecords 方法将新数据放入 zoho 中的字段时,某些字段没有更新。这些字段的标题中有符号,例如“?” '/' '('
如何解决这个问题呢?
字段:“日期/时间”和“email_confirmed_?”为空,但“Last_Name”和“User_group”已更新并有数据。
$header = array("Authorization:Zoho-oauthtoken $token", 'Content-Type: application/json');
$fields = ["data"=> ["Last_Name" => "User Name",
"Date/Time"=>"2018-09-25T13:23:39+02:00",
"email_confirmed_?"=>"yes",
"User_group"=>"new user"]];
$fields = json_encode($fields);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
$result =curl_exec($ch);
curl_close($ch);
【问题讨论】:
-
嘿尤金!你需要给我们更多的信息。例如,发布您编写的代码。举例说明你得到了什么以及你希望它说什么。了解您如何使用 API(可能通过 Composer 包)也很有用?