podio - How do you get the value of a "embed"? -



podio - How do you get the value of a "embed"? -

i have link field called lien. when api through item belongs to, receive next array:

[lien] => array( [0] => array( [embed] => 49935230 [file] => 129256002 ) )

i have no problem file.

how url value?

the embeds documentation: https://developers.podio.com/doc/embeds

a similar issue exists when getting value of category field through item object. it's array of selected option_id, doesn't hold option_text. workaround corresponding app object , search option_text using provided option_id.

the field's values returned collection of embed objects. can see documentation at: http://podio.github.io/podio-php/fields/#linkembed-field

e.g.:

$item = podioitem::get_basic(123); $field_id = 'embed'; $collection = $item->fields[$field_id]->values; foreach ($collection $embed) { print "embed id: ".$embed->embed_id; print "embed url: ".$embed->original_url; }

podio

Comments

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -