what's the domain?

82 views
Skip to first unread message

Adam Cox

unread,
Jul 12, 2012, 2:58:05 AM7/12/12
to podi...@googlegroups.com
I'm using curl to test the API. I've gone through authentication and received my access_token with curl -X POST. But then I try to get the items in my app

curl --ssl  -X GET https://podio.com/item/app/1672981 -H "Authorization: OAuth2 mytoken"

where 1672981 is my app_id

I get a 404 response.


both give me a 404

thanks for your help.
Adam



Christian Holm

unread,
Jul 12, 2012, 2:58:47 AM7/12/12
to podi...@googlegroups.com
The host for the API is api.podio.com

Adam Cox

unread,
Jul 12, 2012, 3:21:21 AM7/12/12
to podi...@googlegroups.com
doh!

{"error_propagate":false,"error_parameters":{},"error_detail":null,"error_description":"Authentication as an app is not allowed for this method","error":"forbidden"}

all i want to do is to grab the items from a particular app and list them on an external page.... shouldn't be too hard, no?

the API webpage says that App Authentication should work for this (at least, that's what I interpret this says: https://developers.podio.com/doc/items/get-items-27803)

Christian Holm

unread,
Jul 12, 2012, 3:28:08 AM7/12/12
to podi...@googlegroups.com
Hi

I'm pretty sure that works. I have testcases for it and we also use it ourself quite a lot.

Can you show the exact request you did?

Christian

Adam Cox

unread,
Jul 12, 2012, 3:37:23 AM7/12/12
to podi...@googlegroups.com

curl -X GET https://api.podio.com/item/app/1672981 -H "Authorization: OAuth2 8d1800693ffc4031aaf68cb9989d1b99"

{"error_propagate":false,"error_parameters":{},"error_detail":null,"error_description":"Authentication as an app is not allowed for this method","error":"forbidden"}

Christian Holm

unread,
Jul 12, 2012, 3:49:56 AM7/12/12
to podi...@googlegroups.com
Hi

Just add a "/" at the end of that URL and it should work.

Christian

Adam Cox

unread,
Jul 12, 2012, 5:21:58 AM7/12/12
to podi...@googlegroups.com
right!  yes, the documentation warns me that I should be aware of the slashes.... 

lesson learned. 
Reply all
Reply to author
Forward
0 new messages