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
#!/bin/bash | |
help_text(){ | |
echo "Usage:" | |
echo " $0 HOSTNAME:PORT" | |
echo " HOSTNAME - target hostname to check" | |
echo " ECHO - target port. Default 443" | |
echo "" | |
echo "Env variables:" | |
echo " CERT_CHECK_SLACK_URL - Slack Webhook" | |
echo " CERT_CHECK_SLACK_USERNAME - Slack username" |
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
""" Until Sendgrid updates the Python SDK to handle the new dynamic template data, you can use this Gist to | |
manage dynmaic template data in your python application. | |
The DynamicTemplateData is used to assign the key and value of the data, then NewPersonalizations is a subclass | |
of the existing Personalizations to which the DynamicTemplateData can be added. | |
This Gist takes inspiration from Sendgrid's Python SDK custom_args and CustomArgs. | |
Hopefully, other finds this useful and Sendgrid updates their Python SDK soon | |
""" |