Skip to content

Instantly share code, notes, and snippets.

@jb41
Created May 2, 2016 02:08
Show Gist options
  • Save jb41/3803381dbe35835fbdb2ba514b16669f to your computer and use it in GitHub Desktop.
Save jb41/3803381dbe35835fbdb2ba514b16669f to your computer and use it in GitHub Desktop.
require 'json'
require 'httparty'
def add_email_to_spreadsheet(email)
HTTParty.post(
'https://sheetsu.com/apis/v1.0/c12aec61',
body: { email: email }.to_json,
headers: { 'Content-Type' => 'application/json', 'Accept' => 'application/json'}
).body
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment