April 2018
Intermediate to advanced
280 pages
8h 37m
English
Subscribing to a topic can be done simply by invoking the Subcribe() function of the SNS client object. The following code shows how this is done.
The protocol here can be either SMS or email, depending on what medium you want to use for the notification:
// Add an email subsciption sns_object.Subscribe(new SubscribeRequest{ TopicArn = Topic_Arn_id, Protocol = "email", Endpoint = email_id});