跑道 Api - 创建项目错误 - "Invalid value null (null): must be Range"
Podio Api - Create item error - "Invalid value null (null): must be Range"
我正在尝试创建一个带有关系字段的项目,其中包含多个引用。
$collection = new PodioCollection(array(
new PodioItem(array('item_id' => 425989858)),
new PodioItem(array('item_id' => 425987845))
));
$response = PodioItem::create("16748745", array('fields' => array(
"130415123" => "+13334445552",
"130415337" => $collection
)));
创建项目时显示错误 PodioBadRequestError:"Invalid value null (null): must be Range"。我在这个应用程序中只有这两个字段。
我在单引用时也遇到同样的错误。
$response = PodioItem::create("16748745", array('fields' => array(
"130415123" => "+13334445552",
"130415337" => array('item_id' => 425989858)
)));
有什么帮助吗?
这个应该有用
$response = PodioItem::create("16748745", array('fields' => array(
"130415123" => "+13334445552",
"130415337" => array(425989858, 425987845)
)));
我已经针对 Ruby 代码测试了它,效果很好 :)
created_item = Podio::Item.create(app_id,
'fields' =>
{'title' => 'just for test',
'relationship' => [item_1_id, item_2_id] })
我正在尝试创建一个带有关系字段的项目,其中包含多个引用。
$collection = new PodioCollection(array(
new PodioItem(array('item_id' => 425989858)),
new PodioItem(array('item_id' => 425987845))
));
$response = PodioItem::create("16748745", array('fields' => array(
"130415123" => "+13334445552",
"130415337" => $collection
)));
创建项目时显示错误 PodioBadRequestError:"Invalid value null (null): must be Range"。我在这个应用程序中只有这两个字段。
我在单引用时也遇到同样的错误。
$response = PodioItem::create("16748745", array('fields' => array(
"130415123" => "+13334445552",
"130415337" => array('item_id' => 425989858)
)));
有什么帮助吗?
这个应该有用
$response = PodioItem::create("16748745", array('fields' => array(
"130415123" => "+13334445552",
"130415337" => array(425989858, 425987845)
)));
我已经针对 Ruby 代码测试了它,效果很好 :)
created_item = Podio::Item.create(app_id,
'fields' =>
{'title' => 'just for test',
'relationship' => [item_1_id, item_2_id] })