Post

40 followers Follow
3
Avatar

Login as user

How can i logged in as user rather than as app? i want to get all members of my space using function PodioSpaceMember::get_all($space_id); but i am getting error "Uncaught PodioForbiddenError: "Authentication as app is not allowed for this method"... ". I found that this error is due to trying to logging as app. i have to logged in as user. can anyone tell me how can i logged in as user and how can i find my client id and client secrets?

Jeremy Nagel Answered

Please sign in to leave a comment.

4 comments

0
Avatar

Hi Jeremy,

You find your client id and secret here: https://podio.com/settings/api

You control how you authenticate. When you call Podio::authenticate you specify the authentication type. If you call that method multiple times the last one counts. If you get the error that you are getting you are indeed authenticated as an app and not a user.

/Andreas

Andreas Haugstrup Pedersen 0 votes
0
Avatar

Hey Andreas, thank you for your reply. i have got my client id and secret from url provided by you. but when i tried to get members of space using this url  https://developers.podio.com/doc/space-members/get-active-members-of-space-22395 i got valid response and all details of my space members but when i tried using api call like below 

$mem=PodioSpaceMember::get_all(MY_SPACE_ID);

i got different json formate. where i made mistake? any idea?

Jeremy Nagel 0 votes
0
Avatar

Hi andreas,

I have found the mistake and corrected it, thank you for your support

Jeremy Nagel 0 votes