Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)
How do you access an Amazon SNS post body with Express/Node.js?

1 Answer

0 votes
by (119k points)

Here is how you can access an AWS SNS post body with Express/Node.js assuming that you're using body-parser.

Just add the following lines to your app.js:

app.use(bodyParser.json());

app.use(bodyParser.text({ type: 'text/plain' }));

Related questions

0 votes
1 answer
Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...