Skip to content

Instantly share code, notes, and snippets.

@Haseeb-Qureshi
Last active April 6, 2017 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Haseeb-Qureshi/8eaaf329895f3dc64a069b7f2c0a0197 to your computer and use it in GitHub Desktop.
Save Haseeb-Qureshi/8eaaf329895f3dc64a069b7f2c0a0197 to your computer and use it in GitHub Desktop.
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