This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |