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
curl -X POST -d '{"name":"example_name"}' -H "Content-Type: application/json" -u sendgrid_username https://api.sendgrid.com/v3/templates |
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
httpClient.DefaultRequestHeaders.Authorization = | |
new AuthenticationHeaderValue( | |
"Basic", | |
Convert.ToBase64String( | |
System.Text.ASCIIEncoding.ASCII.GetBytes( | |
string.Format("{0}:{1}", username, password)))); |
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
module Jekyll | |
class ApiExample < Liquid::Block | |
def initialize(tag_name, markup, tokens) | |
attributes = markup.split | |
@identifier = attributes[0] | |
@http_method = attributes[1] | |
@url = attributes[2] | |
@data = attributes[3] | |
super |
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
// Create the email object first, then add the properties. | |
SendGrid myMessage = SendGrid.GetInstance(); | |
myMessage.AddTo("[email protected]"); | |
myMessage.From = new MailAddress("[email protected]", "John Smith"); | |
myMessage.Subject = "Testing the SendGrid Library"; | |
myMessage.Text = "Hello World!"; | |
string[] categories = new string[3] {"category1", "category2", "category3"}; | |
myMessage.SetCategories(categories); |
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
INVALID JSON in source/API_Reference/Customer_Subuser_API/apps.html: | |
"settings":null | |
-------------------------- | |
INVALID JSON in source/API_Reference/Customer_Subuser_API/whitelabel.html: | |
-------------------------- | |
INVALID JSON in source/API_Reference/Marketing_Emails_API/variations.html: |
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 'json' | |
require 'nokogiri' | |
require 'nokogiri-pretty' | |
markdown_files = File.join("/docs/source", "**", "*.md") | |
Dir.glob markdown_files do |markdown_file| | |
next if markdown_file == '.' or markdown_file == '..' | |
path = markdown_file |
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
. | |
├── _config.yml | |
├── _drafts | |
| ├── begin-with-the-crazy-ideas.textile | |
| └── on-simplicity-in-technology.markdown | |
├── _includes | |
| ├── footer.html | |
| └── header.html | |
├── _layouts | |
| ├── default.html |
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
module Jekyll | |
require 'haml' | |
class HamlConverter < Converter | |
safe true | |
priority :low | |
def matches(ext) | |
ext =~ /haml/i | |
end |
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
--- | |
layout: page | |
weight: 0 | |
title: Python | |
navigation: | |
show: true | |
--- | |
We'll start with a simple example using the built-in Python SMTP libraries to send a message. | |
After that example, you can find more complete instructions that use the SendGrid Python library. |
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> | |
<title>{{ page.title }}</title> | |
</head> | |
<body> | |
{% include header.html %} | |
<div class="container"> | |
<article id="content"> | |
{{ content }} | |
</article> |