Im trying to get the email of a subscriptor in a specific topic.
But with code below Im getting a dictonary, but I just want the email:
conn = boto.sns.connect_to_region("us-east-1")
test = conn.get_all_subscriptions_by_topic("arn:aws:sns:us-east-2:8274142742:testtopic")
print test
I was trying something like this:
test2 = test['ListSubscriptionsByTopicResponse']['ListSubscriptionsByTopicResult']['Subscriptions'][0]
But again, I dont get only the email.
Do you know how can I get only the email here?
Aucun commentaire:
Enregistrer un commentaire