Skip to content

Instantly share code, notes, and snippets.

@shlee322
Created April 22, 2017 05:23
Show Gist options
  • Save shlee322/fa67969f3d6df5c8848c5fe7b8b70ddc to your computer and use it in GitHub Desktop.
Save shlee322/fa67969f3d6df5c8848c5fe7b8b70ddc to your computer and use it in GitHub Desktop.
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