Created
April 22, 2017 05:23
-
-
Save shlee322/fa67969f3d6df5c8848c5fe7b8b70ddc to your computer and use it in GitHub Desktop.
This file contains 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 boto3 | |
client = boto3.client('sns', | |
aws_access_key_id=settings.AWS_ACCESS_KEY_ID, | |
aws_secret_access_key=settings.AWS_SECRET_ACCESS_KEY, | |
region_name='ap-northeast-1') | |
for phone in recipient_list: | |
client.publish( | |
PhoneNumber=phonenumbers.format_number(phone, phonenumbers.PhoneNumberFormat.E164), | |
Message=message, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment