I hereby claim:
- I am ewandennis on github.
- I am ewandennis (https://keybase.io/ewandennis) on keybase.
- I have a public key whose fingerprint is C73D 48F9 0FBA 9E3F 45C9 28E0 05F5 3946 98F1 F247
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
This integration consumes Segment events and uses them to create and maintain recipient lists within SparkPost. For example, when you send 'page' events into Segment.com, a recipient list is created for each page containing the users that visit that page.
| 'use strict'; | |
| /* | |
| * Update a SparkPost template to use substitution variables | |
| * in content.from.name, content.from.email and content.reply_to | |
| * | |
| * Usage: node setDynamicFromReplyTo.js <API KEY> <template ID> | |
| * | |
| * Note: your API KEY must have template write privileges. | |
| * |
| 'use strict'; | |
| var SparkPost = require('sparkpost'); | |
| let client = new SparkPost('YOUR_API_KEY', { | |
| endpoint: 'https://yourservice.sparkpostelite.com/' | |
| }); | |
| client.transmissions.send({ | |
| campaign_id: "SMS notifications", |
| <?php | |
| /* Dependencies: | |
| * - php-mime-mail-parser (https://github.com/php-mime-mail-parser/php-mime-mail-parser) | |
| * - The mailparse extension (http://php.net/manual/en/book.mailparse.php) | |
| */ | |
| require 'vendor/autoload.php'; | |
| $messages = json_decode(file_get_contents('php://input')); | |
| foreach ($messages as $msg) { |
| """Receive an extract email attachments using SparkPost relay webhooks. | |
| Prerequisites: | |
| - An inbound domain: https://developers.sparkpost.com/api/inbound-domains.html | |
| - A relay webhook: https://developers.sparkpost.com/api/relay-webhooks.html | |
| Dependencies: | |
| - flask | |
| """ |
| 'use strict'; | |
| /* Receive and extract email attachments using SparkPost relay webhooks. | |
| * | |
| * Prerequisites: | |
| * - An inbound domain: https://developers.sparkpost.com/api/inbound-domains.html | |
| * - A relay webhook: https://developers.sparkpost.com/api/relay-webhooks.html | |
| */ | |
| /* |
| <?php | |
| function setoptions($session) { | |
| curl_setopt($session, CURLOPT_TCP_NODELAY, TRUE); | |
| curl_setopt($session, CURLOPT_ENCODING, 'gzip'); | |
| // curl_setopt($session, CURLOPT_TCP_FASTOPEN, TRUE); | |
| } | |
| $trans = "{ | |
| \"options\": { |
| Shader "Custom/Stencilled" { | |
| Properties { | |
| _StencilMask("Stencil mask", Int) = 0 | |
| _Color ("Color", Color) = (1,1,1,1) | |
| _MainTex ("Albedo (RGB)", 2D) = "white" {} | |
| _Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
| _Metallic ("Metallic", Range(0,1)) = 0.0 | |
| } | |
| SubShader { | |
| Tags { "RenderType"="Opaque" } |
| Shader "Custom/StencilMask" { | |
| Properties { | |
| _StencilMask("Stencil mask", Int) = 0 | |
| } | |
| SubShader { | |
| Tags { | |
| "RenderType" = "Opaque" | |
| "Queue" = "Geometry-100" | |
| } |