Skip to content

Instantly share code, notes, and snippets.

View scperry19's full-sized avatar

Seth Perry scperry19

  • SourceDigital Marketing & Trans Tech Social Enterprises
  • Chicago, IL
View GitHub Profile
@picsoung
picsoung / twitterAuthMiddleware.lua
Last active August 29, 2015 14:01
OAuth twitter middleware for APItools
return function (request, next_middleware)
-- change to your own Twitter keys
api_key = "MY_TWITTER_API_KEY"
api_secret = "MY_TWITTER_API_SECRET"
-- concatenate by ':'
str = api_key .. ':' .. api_secret
console.log(str)
-- generate base64 string