Post

2 followers Follow
1
Avatar

Call to undefined method PodioItemFieldCollection::as_json()

Hi !
I have this issue Call to undefined method PodioItemFieldCollection::as_json() when I run this test code :

$name = "HelloWorld";
$app_id = xxxxxxxxx;
$LeadInfo = new PodioItemFieldCollection(array(
new PodioTextItemField(array("external_id" => "company-name", "values" => $name))
));
PodioItem::create($app_id, $LeadInfo);

Any idea ?
Thank you !
Angelo

angelo blot

Please sign in to leave a comment.

3 comments

0
Avatar

Hi Andreas !

Thanks for your precious help !

Looks like there is two ways to create PodioItem : the one you describe and also the one explain in the documentation.

It worked fine with PodioContact/PodioEmbed but until now I did not succeed with PodioItem...

What you told me did the job !

Thanks again !

Best,

Angelo

 

angelo blot 0 votes