Skip to content

Instantly share code, notes, and snippets.

View kripy's full-sized avatar
👀
Watching

Arturo Escartin kripy

👀
Watching
View GitHub Profile
consumer_key_secret = "#{Settings.twitter_key}:#{Settings.twitter_secret}"
encoded_key_secret = Base64.strict_encode64(consumer_key_secret)
headers = {
'Authorization' => "Basic #{encoded_key_secret}",
'Content-Type' => "application/x-www-form-urlencoded;charset=UTF-8"
}
body = 'grant_type=client_credentials'