July 2018
Intermediate to advanced
324 pages
8h 14m
English
We have integrated Amazon SNS to implement the SMS subscription feature. We designed the API /subscribe?mobile=<mobile_number>&otp=<otp_code> to create a subscription for getting daily quote messages on registered mobiles.
The following is a log snippet showing the execution of the subscription API:
$ curl https://quote-api.abdulwahid.info/subscribe?mobile=919028XXXXXX{"message": "An OTP verification has been sent on mobile +919028XXXXXX. To complete the subscription, Use OTP with this URL pattern https://quote-api.abdulwahid.info/subscribe?mobile=+919028XXXXXX&otp=XXXX."}$ curl https://quote-api.abdulwahid.info/subscribe?mobile=919028XXXXXX&otp=XXXX{"message": "Congratulations!!! You have successfully subscribed ...Read now
Unlock full access