Skip to content

Instantly share code, notes, and snippets.

View demoore's full-sized avatar
💃

Dylan Moore demoore

💃
View GitHub Profile
{
"totaltransactions": 5,
"newcustomers": 1,
"customers": [
"doomsday": {
"transactionsthisweek": 1,
"customerID": "doomsday",
"previoustransactions": 2
},
"bane": {
{
"totaltransactions": 5,
"newcustomers": 1,
"customers": [
"doomsday": {
"transactionsthisweek": 1,
"customerID": "doomsday",
"previoustransactions": 2
},
"bane": {
// 1) Set your API key
string api_key = "YOUR API KEY";
// Let's create a request
string url = "https://api.sendwithus.com/api/v1_0/send";
var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);
httpWebRequest.ContentType = "text/json";
httpWebRequest.Method = "POST";
// set headers with api key
<style type="text/css" media="only screen and (max-width: 600px)">
@media only screen and (max-width: 600px) {
table[class="container"] .block-grid td {
width: 100% !important;
}
}
</style>
{
"firstname": "David",
"lastname": "Lee"
}
require 'rubygems'
require 'send_with_us'
begin
obj = SendWithUs::Api.new( api_key: 'API KEY', debug: true )
puts Time.now.to_i
customer_data = {:FirstName => "dylan"}
result = obj.customer_create("dylan@someplace.com", customer_data)
puts result
<html>
<head></head>
<body>
<h2>Keys</h2>
<ul>
{% for key in items %}
<li>{{ key }}</li>
{% endfor %}
</ul>
<h2>iteritems</h2>
import java.util.HashMap;
import java.util.Map;
import com.sendwithus.SendWithUs;
import com.sendwithus.SendWithUsSendRequest;
import com.sendwithus.exception.SendWithUsException;
import com.sendwithus.model.DeactivatedDrips;
import com.sendwithus.model.Email;
import com.sendwithus.model.SendReceipt;
require 'sendwithus_ruby_action_mailer'
module SomeModule
class Notifier < SendWithUsMailer::Base
def welcome
mail(
email_id: 'tem_RpQWPHNNuUoekvKEPEo',
recipient_address: 'moore.dylan@gmail.com',
from_name: 'Wut',
{
"customer": {
"Name": "Charlie"
},
"worker": {
"Name": "Worker Charlie"
}
}