July 2018
Intermediate to advanced
324 pages
8h 14m
English
The unsubscription API will be responsible for removing any subscribed mobile numbers. This API has a similar workflow to the /subscribe API, using something very close to /subscribe?mobile=<mobile_number>.
See the following log snippet of the /unsubscribe API being executed:
$ curl https://quote-api.abdulwahid.info/unsubscribe?mobile=919028XXXXxx{"message": "You have successfully unsubscribed from daily famous quote. See you again."}
This removes the related subscription from Amazon SNS subscriptions. The following is a screenshot of the Amazon SNS web console following execution of the unsubscription API:

Read now
Unlock full access