Hi,
Please let me know how I can create two webhooks in the same project.
One for Development server.
Second for Production Server.
Waiting for reply asap.
Thanks
Best answer by kaitlin
View originalHi,
Please let me know how I can create two webhooks in the same project.
One for Development server.
Second for Production Server.
Waiting for reply asap.
Thanks
Best answer by kaitlin
View originalHi Vincent!
At this time, we only support one webhook url per app. This is definitely on our backlog to support but I don’t have an ETA at this time.
There are a couple things you could try in the meantime:
environment
field in webhooks to differentiate between event types, such as SANDBOX
or PRODUCTION
We have developers who use either of these options often, so it will come down to personal preference.
Please let me know if this helps and if you have any other questions!
And what happens when you receive event for TRASFER?
There is no field `environment` in that event.
```
{
"api_version": "1.0",
"event": {
"app_id": "XXX",
"event_timestamp_ms": XXX,
"id": "XXX",
"store": "APP_STORE",
"transferred_from": [
"XXX"
],
"transferred_to": [
"XXX"
],
"type": "TRANSFER"
}
}
```
We had a single app at first. The Transfer webhook do not carry the environment as mentioned above. We had to devise a dirty trick of exposing a method of checking wether a pair of user ids was valid on a given environment and fallback to the other otherwise. Now we are moving to two separate RC projects which is not as clean, but at least guarantees unique webhooks per environment.
Hi Vincent!
At this time, we only support one webhook url per app. This is definitely on our backlog to support but I don’t have an ETA at this time.
There are a couple things you could try in the meantime:
environment
field in webhooks to differentiate between event types, such as SANDBOX
or PRODUCTION
We have developers who use either of these options often, so it will come down to personal preference.
Please let me know if this helps and if you have any other questions!
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.