mcrumm / phlack

Slack Integrations for PHP
MIT License
52 stars 8 forks source link

How configure my app for MessageBuilder? #11

Closed KingYes closed 9 years ago

KingYes commented 9 years ago

I just get this error:

Result:
object(Crummy\Phlack\Bridge\Guzzle\Response\MessageResponse)#467 (1) {
  ["data":protected]=>
  array(3) {
    ["status"]=>
    int(404)
    ["reason"]=>
    string(9) "Not Found"
    ["text"]=>
    string(8) "No hooks"
  }
}

Which are service I need to use?

mcrumm commented 9 years ago

Slack made some changes to their Incoming Webhooks API. When you create an Incoming Webhook, Slack will give you a URL like: https://hooks.slack.com/services/ZZZZZZZZZ/YYYYYYYYY/XXXXXXXXXXXXXXX

The last segment of the URL (XXXXXXXXXXXXXXX) is the token.

FYI, I will be deprecating this library soon, as I haven't had time to keep it up-to-date. I would recommend either maknz/slack or cleentfaar/slack as an alternative.

KingYes commented 9 years ago

Thanks