Posting multiple embed urls

Comments

5 comments

  • Andreas Haugstrup Pedersen

    Hi Joshua,

    You can see examples at: http://podio.github.io/podio-php/fields/#linkembed-field

    /Andreas

    0
    Comment actions Permalink
  • Joshua Baker

    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?

    0
    Comment actions Permalink
  • Joshua Baker

    Sorry im still quite new to php

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    In your case you should be able to add multiple values by wrapping link in an array:

    "link"=> array(array('url' => 'http://example.com/'), array('url' => 'http://example.org/')), 
    
    0
    Comment actions Permalink
  • Joshua Baker

    Brillaint that did just the job. I did try this but must of made an error. Thank you so much for your help.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk