ChatGram is a barebones Instagram realtime endpoint for posting images to a chat service. With it, you can...
See when friends post pics -- in RealTime (tm)!
Search for recent Instagrams in a given lat/long!
(Note: This requires custom location search => lat/long coordinates integration).
- Clone the repo from GitHub.
bundle installto load the right dependencies.
rake db:createto create the database.
bundle exec rackup config.ruto start the server.
If you don't want to use Bundler or Rubygems, you can require
chat_gram/app manually and start it up like any other Rack
I tried to make the basic pieces as abstract as possible. You should be able to write custom chat service endpoints, or store your data in CouchDB...
The data store has a simple API and can basically support anything. Only basic DB support is included.
To activate the subscription webhook, run
curl -F 'client_id=CLIENT-ID' \ -F 'client_secret=CLIENT-SECRET' \ -F 'object=user' \ -F 'aspect=media' \ -F 'verify_token=myVerifyToken' \ -F 'callback_url=http://site/image' \ https://api.instagram.com/v1/subscriptions/
- Document startup env vars better
- Add yaml config file support.
- Finish Admin UI.
- Come up with a clever way to load other chat services or data stores.
- Bundle into a gem.