Create a gist now

Instantly share code, notes, and snippets.

@Haseeb-Qureshi /api.rb Secret
Last active Apr 6, 2017

What would you like to do?
require 'faraday'
class Api
BASE_URL = 'http://www.lettermelater.com/account.php'
COOKIE = 'code=13fa1fa011169ab29007fcad17b2ae; user_id=279789'
def self.get(query)
Faraday.get(BASE_URL, { qe: query }, Cookie: COOKIE).body
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment