Skip to content

A slash command that returns a random image from an Unsplash category

Notifications You must be signed in to change notification settings

dgolant/unsplash-mixmax-slash-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unsplash Slash Command for Mixmax

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. Credit to the Mixmax team for my modifying their base README.

Running locally

Before doing any of this, you must register a developer account and an app at unsplash.com/developers

  1. Install using npm install
  2. Create a .env file in your root directory with the following format:
PORT=5000
UNSPLASH_APP_ID=<your_unsplash_app_id>
UNSPLASH_APP_SECRET=<your_unsplash_app_secret>
UNSPLASH_APP_CALLBACKURL=<your_unsplash_callback_url>
  1. Run using npm start
  2. Add a Mixmax Slash Command in your Mixmax dashboard. (Call it unsplashsearch, or whatever you'd like) Using:
    Typeahead API URL: https://localhost:5000/typeahead
    Resolver API URL: https://localhost:5000/resolver
  3. Quit Chrome and restart it using the following command on OS X: open -a Google\ Chrome --args --ignore-certificate-errors. See here for why.
  4. Compose an email in Gmail using Mixmax and type /unsplashsearch [Search] (or whatever you called it above)

About

A slash command that returns a random image from an Unsplash category

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published