Fatal error: Uncaught PodioForbiddenError:

Answered

Comments

4 comments

  • Andreas Haugstrup Pedersen

    Hi Derek,

    You can only use app authentication with the operations that allow it. Those are marked in the documentation by saying "App Authentication" in the top right corner.

    You can see such a mark here: https://developers.podio.com/doc/items/get-item-22360

    Get Task doesn't allow app authentication and that's why you get the error saying that app authentication is not allowed: https://developers.podio.com/doc/tasks/get-task-22413

    As Get Item will also give you a list of tasks for that item I would suggest that you simply get the item your task is on and get to the task data that way.

    Makes sense?

    All the best,

    Andreas

    0
    Comment actions Permalink
  • Derek Gardiner

    Thanks, I will try your suggestion of going through the item before the task. I got this code from the file called "basics.php" in the example folder from the podio php code off of github. Am I doing something wrong here or does this example not actually work?

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    Hi Derek,

    That is indeed very confusing. I've changed the example to be based on items instead of tasks so other people won't run into the same issue.

    All the best,

    Andreas

    0
    Comment actions Permalink
  • Derek Gardiner

    Thanks for the update! I got the other example working!

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk