[英]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:“無效值null(空):必須為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] })
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.