Skip to content

Instantly share code, notes, and snippets.

require 'httparty'
class LitmusTest
include HTTParty
base_uri('https://api.litmus.com/v2')
basic_auth('<YOUR API KEY>', 'x')
headers({'Content-Type' => 'application/json'})
def self.create(subject, body)
post('/emails', :body => {:email => {:name => "#{subject} @ #{Time.now.to_s(:short)}", :subject => subject, :body => body, :client_ids => self.client_ids}}.to_json)
@nesquena
nesquena / caveatPatchor.js
Created May 17, 2011 00:37
propane_extensions
/*
As of version 1.1.2, Propane will load and execute the contents of
~/Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.