Problem with multiple Webhooks using One Callback URL

I’ve been trying to find a way to use the same callback URL for a Webhook for the “Stream Changed” topic.

If you use the same URL for multiple users you would get {“data”:[]} when any one of them goes off line, but you didn’t know which one it applies to.

I decided a good solution would be use a query string in my callback URL. Something like:

https://www.mydomain.com/mycallback.php?ThisPersonID=123456

The systems accepts the callback URL and I get my json posts, but using PHP I can never read the query string. I’ve tried $_SERVER[‘QUERY_STRING’], $_GET and $_REQUEST.

Do you just have to use a different callback file for each of these subscriptions or am I doing something wrong in trying to make the above work?

Thank you.

Show your code.

You are doing what we all do with webhooks (use a query string in the callback)

Based on your answer, I reviewed and retested my code. I was overwriting the url creating the subscription, but trying to find the mistake in the callback file.

Thanks for your help. Appreciate it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.