# More events in one Webhook (SOLVED)

**URL:** <https://community.particle.io/t/more-events-in-one-webhook-solved/16516>\
**Category:** Troubleshooting\
**Created:** [October 13, 2015, 8:05pm UTC](https://community.particle.io/t/more-events-in-one-webhook-solved/16516 "2015-10-13T20:05:20Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![indraastra](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/indraastra/32/7286_2.png) [@indraastra](https://community.particle.io/u/indraastra)\
**Post date:** [October 13, 2015, 9:25pm UTC](https://community.particle.io/t/more-events-in-one-webhook-solved/16516/10 "2015-10-13T21:25:28Z")

</div>

Ok, I was able to get a Photon posting to a dynamic webhook URL (this particular example is for posting to a Slack channel):

Code:

```auto
Spark.publish("log_info", "{\"my-log\": \"Yo!\", \"my-url\":\"a/b/c\"}", 60);

```

Webhook definition:

```auto
{
    "eventName": "log_",
    "url": "https://hooks.slack.com/services/{{my-url}}",
    "requestType": "POST",
    "json": {
    	"username": "{{SPARK_CORE_ID}}",
        "text": "{{my-log}}"
    }
}

```

Hope that works for you, too!

---

_[View the full topic](https://community.particle.io/t/more-events-in-one-webhook-solved/16516)._
