How to get started

Hello,

So, I’ve used JQuery, CSS, and HTML and I’m a bit confused how to use Postman in a web application.

I’ve seen how to create and test requests within the Postman OS X application itself, but I can’t seem to find out how to use Postman to help me create requests from my web application.

For example, let’s say I have something very simple, an index.html and a index.js. How would I use Postman to help me load some Twitter data onto my index.html from within index.js? I’m not sure if this is possible, so if it 's not , that’s OK, I just can’t seem to find out how to do this from the getting started documentation.

Is this possible with Postman, or is it purely for testing APIs out?

Thanks.

If your web application uses JavaScript, then you’ll need to use a tool like Selenium which can execute the JavaScript on a web page. If your web application works without JavaScript then you can parse the HTML response like this.
var responseHtml = cheerio(pm.response.text()); pm.environment.set("code", responseHtml.find('[name="code"]').val());