Skip to content

Instantly share code, notes, and snippets.

@alekhinen
alekhinen / blog_controller.rb
Created July 19, 2014 16:11
BlogController for Tumblr API (Ruby)
class BlogController < ApplicationController
def index
# Keys given from Tumblr API
@key = TUMBLR_KEY
@secret = TUMBLR_SECRET_KEY
@oauth_token = TUMBLR_OAUTH_TOKEN
@oauth_token_secret = TUMBLR_OAUTH_TOKEN_SECRET
# Sets the client that allows interfacing with Tumblr