Post

3 followers Follow
1
Avatar

Email to item via PHP API

I’m trying to get the ”email to item” email address for an item via PHP and the API.

After authorization I use:
$emailInfo = Podio::request('GET','/email/contact/item_comment_app/item/123456789(item id)');
I don’t seem to work. If I use the sandbox here:
https://developers.podio.com/doc/email/get-email-contact-for-reference-13716555

and use:

name:
item_comment_app

ref_type:
item

ref_id:
123456789 (item id)

It works fine.

What am I doing wrong?

Christian Kirring

Please sign in to leave a comment.

4 comments

0
Avatar

In my current setup I dont get any error message - PHP just stops at that line.

Christian Kirring 0 votes
Comment actions Permalink
0
Avatar

Several years later...I am trying to do the same.
Using podio-php lib from gitHub, when app authenticating and calling 
$emailWrapper = Podio::request('GET', '/email/contact/item_comment_app/item/' . $itemID);

I get a PodioForbidden error when hitting my endpoint whil it works in the sandbox just fine.
I suspect authentication is some how not happy. Could you please advise?

 

Jamie Walker 0 votes
Comment actions Permalink