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 🙂

Published by Bruce Elgort

You’ll find this technology professor – an award-winning instructor at Clark College – working hard to inspire and challenge his students with meaningful web development and programming experiences. With a skinny vanilla latte (no foam) in hand, Bruce loves to tinker and test the boundaries of existing and emerging technologies, to then guide hungry minds through memorable, educational journeys to showcase with passion the ever-evolving innovations of society. An industry leader, Bruce is known for co-developing Elguji’s IdeaJam software, and is recognized by IBM as an ‘IBM Champion’ for being an innovative thought leader in cloud technologies.

One thought on “With only 17 lines of code

Comments are closed.

%d bloggers like this: