Posting multiple embed urls
Hi im trying to create an item with multiple values in the link field. At present I use this line of php:
"link"=> array('url' => $urllinks, 'embed_id' => '1')
how i can seem to post more than one value? how do i do this?
-
Hi Joshua,
You can see examples at: http://podio.github.io/podio-php/fields/#linkembed-field
/Andreas
-
Ok so currently i create an item like this:
PodioItem::create(10598840, array('fields' => array(
"activity" => "$activity",
//"topic" => "$topictitle",
//"topic" => Array ( "[0]" => "84983143" ),
"topic" => intval($topictitle),
"date" => array('start' => "2011-05-06 11:27:20", "end" => "2011-05-09 11:27:20"),
"goal2" => "$goal",
"equipment-needed" => "$equipment",
"description-of-game" => "$description",
"duration" => intval($duration),
"link"=> array('url' => $urllinks, 'embed_id' => '1'),
//"image" => "$urlimages",
)
));Im guessing from the example you gave me this isn't a good way of creating a new item, when you have multiple values in url field?
Please sign in to leave a comment.
Comments
5 comments