This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"totaltransactions": 5, | |
"newcustomers": 1, | |
"customers": [ | |
"doomsday": { | |
"transactionsthisweek": 1, | |
"customerID": "doomsday", | |
"previoustransactions": 2 | |
}, | |
"bane": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"totaltransactions": 5, | |
"newcustomers": 1, | |
"customers": [ | |
"doomsday": { | |
"transactionsthisweek": 1, | |
"customerID": "doomsday", | |
"previoustransactions": 2 | |
}, | |
"bane": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"firstname": "David", | |
"lastname": "Lee" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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("[email protected]", customer_data) | |
puts result |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head></head> | |
<body> | |
<h2>Keys</h2> | |
<ul> | |
{% for key in items %} | |
<li>{{ key }}</li> | |
{% endfor %} | |
</ul> | |
<h2>iteritems</h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sendwithus_ruby_action_mailer' | |
module SomeModule | |
class Notifier < SendWithUsMailer::Base | |
def welcome | |
mail( | |
email_id: 'tem_RpQWPHNNuUoekvKEPEo', | |
recipient_address: '[email protected]', | |
from_name: 'Wut', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"customer": { | |
"Name": "Charlie" | |
}, | |
"worker": { | |
"Name": "Worker Charlie" | |
} | |
} |
NewerOlder