Post

1 follower Follow
0
Avatar

What is the correct URL?

I am developing an application that will access Podio, I have the oauth part working and it is giving me back a token. I am now trying to call different parts of the API like '/org', '/user/' etc. I am passing in the OAUTH2 header with the request and I am using the URL for our space. But ever time I make the call it returns a full web page of data instead of the JSON data from the API that I am expecting. I have tried 'https://podio.com' and '

https://sailpoint---professional-services.podio.com' which is our URL in Podio. Both of these return what appears to be a web page instead of the API data. Any ideas where I am going wrong?

 

Thanks,

 

Bryan

Bryan Bible

Please sign in to leave a comment.

2 comments

0
Avatar

The API endpoint is always api.podio.com so when you see paths in the API reference https://developers.podio.com/doc that's the domain you should be hitting.

E.g. for getting your user status -- https://developers.podio.com/doc/users/get-user-status-22480 you need to make a request to https://api.podio.com/user/status

If you are using one of our supported languages I will strongly recommend you use the appropriate client library as this and many many many (many) other issues are handled for you automatically. https://developers.podio.com/clients

Andreas Haugstrup Pedersen 0 votes
0
Avatar

Ah thanks for the pointer. So I originally started using the Java API client but soon found that there is a class clash with the Jersey library. My application uses jersy server and core 1.1.5.1 and the Podio java client needs a later version. Is there an easy way around this?

Bryan Bible 0 votes