amazon web services - Get the subscription email from a specific topic -


im trying email of subscriptor in specific topic.

but code below im getting dictonary, want 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 trying this:

test2 = test['listsubscriptionsbytopicresponse']['listsubscriptionsbytopicresult']['subscriptions'][0] 

but again, dont email.

do know how can email here?

with print test, im getting this:

 {u'listsubscriptionsbytopicresponse':  {u'responsemetadata': {u'requestid': u'd0cc4614-c74-580-b87-0abc0354042'},   u'listsubscriptionsbytopicresult': {u'nexttoken': none, u'subscriptions':   [{u'owner': u'8472474872', u'endpoint': u'email@testemail.email', u'protocol': u'email',   u'topicarn': u'arn:aws:sns:us-east-2:8274142742:testtopic',  u'subscriptionarn': u'arn:aws:sns:us-east-2:8274142742:testtopic:764201g4-812-4e26-a234-3ed4c2732d'}]}}} 


Comments

Popular posts from this blog

tcpdump - How to check if server received packet (acknowledged) -