polem / slack-notifier

A simple php wrapper for slack notification (incomming webhook)
MIT License
59 stars 16 forks source link

SlackHQ has updated the webhook URL format, breaking this library #7

Open thinkspill opened 10 years ago

thinkspill commented 10 years ago

I don't completely understand the format at this point, but the new URL for incoming webhooks looks like this:

https://hooks.slack.com/services/<UNKNOWN CODE 1>/<UNKNOWN CODE 2>/<WEBHOOK TOKEN>

I'm not sure what codes 1 and 2 are, but they appear to be team and integration unique.

polem commented 10 years ago

Thanks you for the issue, i will check the new API and fix the issue

thinkspill commented 10 years ago

Code 1 is the team ID and Code 2 is the integration ID. I've written in asking for details and will update this issue when I receive info.

polem commented 10 years ago

Good ! Thanks you

thinkspill commented 10 years ago

Hello again. Slack responded saying that the best practice would be to request the entire Webhook URL from the user now, rather than just the ID parts, since each of the three IDs will be unique per user/webhook.