Login as user
AnsweredHow 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?
-
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
-
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?
Please sign in to leave a comment.
Comments
4 comments