Update ClientbaseAPI.php
This commit is contained in:
parent
a815265bb6
commit
3944791ae7
|
|
@ -179,7 +179,7 @@ class ClientbaseAPI
|
|||
|
||||
$body = $this->bodyFromData($data);
|
||||
$body->data->type = "data" . $tableId;
|
||||
$rawResult = $this->query("/data" . $tableId . "/" . $lineId, "POST", "", $body);
|
||||
$rawResult = $this->query("/data" . $tableId, "POST", [], $body);
|
||||
$result = $this->_rawToResult($rawResult);
|
||||
|
||||
return $result;
|
||||
|
|
@ -206,7 +206,7 @@ class ClientbaseAPI
|
|||
$body = $this->bodyFromData($data);
|
||||
$body->data->type = "data" . $tableId;
|
||||
$body->data->id = $lineId;
|
||||
$rawResult = $this->query("/data" . $tableId . "/" . $lineId, "PATCH", "", $body);
|
||||
$rawResult = $this->query("/data" . $tableId . "/" . $lineId, "PATCH", [], $body);
|
||||
$result = $this->_rawToResult($rawResult);
|
||||
|
||||
return $result;
|
||||
|
|
@ -435,4 +435,4 @@ class ClientbaseAPI
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue