This is an open source Mixmax Slash Command. See http://sdk.mixmax.com/docs/tutorial-giphy-slash-command for more information about how to use this example code in Mixmax.
- Install using
npm install
- Run using
npm start
To simulate locally how Mixmax calls the typeahead URL (to return a JSON list of typeahead results), run:
curl http://localhost:9145/typeahead?text=cats
To simulate locally how Mixmax calls the resolver URL (to return HTML that goes into the email), run:
curl http://localhost:9145/resolver?text=cats
What it looks like http://imgur.com/a/RsIDU