简体   繁体   中英

How to add an external URL to new Podio item created using Podio PHP API?

As mentioned in below example:

$newItem = PodioItem::create($app_id, array(
    'fields' => array(
        "name" => "John", 
        "company-profile" => "<a href='http://example.com/' target='_blank'>View Profile</a>")));

As I have applied an external link to company-profile by the name of View Profile , but I will not get the error: 500 Internal Server Error - PodioBadRequestError

I assume that company-profile is Podio field of type link .

If that's true, then it should be handled a bit differently. In terms of Podio it's called embed , and you can read what it is and how to create one here: https://developers.podio.com/doc/embeds

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM