Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
1936e24
Get unassigned IPs #392, made helper function
d-grossman Oct 17, 2017
c8fc9eb
break up tests
d-grossman Oct 17, 2017
df73eb0
make the python2.6 travis build happy
d-grossman Oct 17, 2017
9f0932f
Add global stats helper
aaronmak Oct 22, 2017
eb65f75
Add child class CategoryStats
aaronmak Oct 22, 2017
a1fab67
fix typo
aaronmak Oct 22, 2017
67d0b63
Clean up json and refine CategoryStats Class
aaronmak Oct 22, 2017
f8183a6
Add SubuserStats class
aaronmak Oct 22, 2017
57439d9
Add to readme
aaronmak Oct 22, 2017
857f49e
Merge remote-tracking branch 'sendgrid/master' into add_stats_helper
aaronmak Oct 22, 2017
246efcc
add tests for stats helper
aaronmak Oct 27, 2017
760c5f1
Add more tests
aaronmak Oct 27, 2017
b12cb7b
add more tests
aaronmak Oct 27, 2017
1b9f336
Add slack event integration
navinpai Oct 28, 2017
57c3040
docker-compose for issue #444
heisendumb Oct 30, 2017
b916a6d
added args to Dockerfile
heisendumb Oct 30, 2017
af559cf
edit USAGE.md
heisendumb Oct 30, 2017
3c2724c
issue #444 done
heisendumb Oct 30, 2017
2a9b404
moved file, updated import
d-grossman Nov 3, 2017
31bf37a
Merge branch 'master' of https://github.com/sendgrid/sendgrid-python
d-grossman Nov 3, 2017
955cac6
removed extra examples dir
mbernier Dec 12, 2017
6b2ac92
Merge branch 'master' of https://github.com/sendgrid/sendgrid-python
mbernier Dec 21, 2017
7bde27a
fixed tests for docker files
mbernier Dec 21, 2017
7ccbf5d
Update Readme
bchandaka Jul 8, 2018
2da51c2
Update README.md
bchandaka Jul 8, 2018
6d5e990
Add a tutorial to deploy a simple 'Hello Email' app on Heroku
swapagarwal Oct 26, 2017
b002197
Adds support for dynamic template data in personalizations
0bsearch Aug 1, 2018
210a4fa
Example for .md usecase
0bsearch Aug 1, 2018
8ff82a8
Linking SG dashboard
0bsearch Aug 1, 2018
65f4857
Change type of category in Mail.add_category from string to Category
lifez Aug 3, 2018
0ca2578
Install pip for python3.6
lifez Aug 3, 2018
382b5e8
Update TROUBLESHOOTING.md
Cabalist Aug 3, 2018
f2c48e3
Updated README for more info
af4ro Aug 6, 2018
6adc948
fixed assertion error
Aug 6, 2018
4fbb92e
Merge branch 'master' into master
af4ro Aug 6, 2018
946a683
readme tag update
af4ro Aug 7, 2018
342b66b
Merge pull request #599 from sendgrid/af4ro-patch-1
thinkingserious Aug 8, 2018
889a3cf
Merge pull request #600 from sendgrid/af4ro-patch-2
thinkingserious Aug 8, 2018
cbd29ac
Merge branch 'master' into master
af4ro Aug 8, 2018
b06bc3e
Merge pull request #588 from bchandaka/master
thinkingserious Aug 8, 2018
e1cc256
minor formatting
af4ro Aug 9, 2018
54aa6ec
Minor readability update
af4ro Aug 10, 2018
5d513e4
Merge branch 'master' into slack_event_integration
navinpai Aug 13, 2018
0c2163c
Add slack API integration to use_cases
navinpai Aug 13, 2018
5364bf9
update TROUBLESHOOTING.md
jpurpura Aug 13, 2018
d1395e2
Merge pull request #603 from sendgrid/jpurpura-patch-1
thinkingserious Aug 13, 2018
51bbf57
Merge pull request #601 from sendgrid/af4ro-patch-3
thinkingserious Aug 14, 2018
2d7af3c
Merge pull request #478 from navinpai/slack_event_integration
thinkingserious Aug 14, 2018
07ed322
Added comment for attachments to be base64 encoded
Aug 14, 2018
e8a8c21
Merge branch 'master' of https://github.com/d-grossman/sendgrid-pytho…
thinkingserious Aug 16, 2018
3ec8e65
Add missing dependencies
thinkingserious Aug 16, 2018
26b3e81
Merge branch 'd-grossman-master'
thinkingserious Aug 16, 2018
9fd72fd
Merge pull request #408 from aaronmak/add_stats_helper
thinkingserious Aug 16, 2018
cd31fc8
Merge pull request #443 from swapagarwal/flask-heroku
thinkingserious Aug 16, 2018
0065cdc
Merge pull request #497 from heisendumb/master
thinkingserious Aug 16, 2018
7f6ed60
Merge pull request #595 from lifez/fix-docstring-for-add_category
thinkingserious Aug 16, 2018
7221ccd
Merge pull request #598 from Cabalist/patch-1
thinkingserious Aug 16, 2018
6102136
Merge pull request #604 from sendgrid/agnesjang98-patch-issue-547
thinkingserious Aug 16, 2018
7bb94ac
Merge pull request #596 from lifez/fix-docker-build
thinkingserious Aug 16, 2018
793aad7
Version Bump v5.5.0: Pre-Dynamic Template Roll Up Release
thinkingserious Aug 16, 2018
68b9eb0
Merge branch 'dynamic_template_support' of https://github.com/3lnc/se…
thinkingserious Aug 16, 2018
28bd2a5
Merge #593
thinkingserious Aug 21, 2018
4be8d58
Merge branch '3lnc-dynamic_template_support'
thinkingserious Aug 21, 2018
7438ae1
Version Bump v5.6.0: Dynamic Template support
thinkingserious Aug 21, 2018
fe61c16
Fix CHANGELOG attribution
thinkingserious Aug 21, 2018
84f7cf2
Typo in comments
thinkingserious Aug 22, 2018
9fcaece
Add support for Python 3.7
hugovk Oct 1, 2018
f3d048a
Remove this line, as we require 2.6+
hugovk Oct 3, 2018
42a6728
Merge branch 'v4' into add-3.7
hugovk Oct 5, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added comment for attachments to be base64 encoded
  • Loading branch information
Agnes Jang committed Aug 14, 2018
commit 07ed3228313eb4379877867fa81ce3fac18c612b
3 changes: 2 additions & 1 deletion examples/helpers/mail/mail_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def get_mock_personalization_dict():


def build_attachment1():
"""Build attachment mock."""
"""Build attachment mock. Make sure your content is base64 encoded before passing into attachment.content.
Another example: https://github.com/sendgrid/sendgrid-python/blob/master/use_cases/attachment.md"""
attachment = Attachment()
attachment.content = ("TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNl"
"Y3RldHVyIGFkaXBpc2NpbmcgZWxpdC4gQ3JhcyBwdW12")
Expand Down