Identifying which app fired a webhook

Answered

Comments

3 comments

  • Lars Pedersen

    Jonathan,

    You should look for $_POST['app_id']

    Podio seems to convert all part's of the querystring to a POST request.

    We had the same issue, and yes it would be nice if the web hooks always send the app_id as a part of the request, but there might be some good reason, for why they don't in some situations.

    One last recommendation — Maybe you should call the app_id something different in the querystring to make sure it does not conflict with the app_id Podio is sending for some web hooks. We use "app" to make it "safe". app will also be a POST parameter in the end.

    1
    Comment actions Permalink
  • Jonathan Sala

    Thanks Lars! That worked a charm. I've also changed app_id to app as suggested.

    0
    Comment actions Permalink
  • Gregory Beaver

    another solution I have used is to use PATH_INFO. Your web hook could be:

    http://example.com/blah.php/123456789

    This way, there is no chance it will conflict with the POST variables podio passes in.

    For the example above, PATH_INFO will be '/123456789'

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk