With only 17 lines of code

Screenshot 2015-11-07 08.51.42

With only 17 lines of PHP code I was able to add a Slack “slash” command (/whatshot) to bring up the list of “What’s Hot” ideas from http://ideajam.net. To do this I used the IdeaJam JSON API and some PHP code to produce the list you see in the picture above. Slack makes it very easy to add integrations. In fact, I also coded another Slack integration for an IBM Notes customer that allows them to pull up data from their CRM database with a simple “/customer” command. That code was also less than 20 lines.

Want to learn more about the Slack API and how you can integrate it with it your apps? You can contact me or you can learn yourself Slack API.

PS – no server reboot was required to add the integration 🙂

Advertisements

One thought on “With only 17 lines of code

  1. Pingback: More fun with the Slack API – Bruce Elgort

Comments are closed.