Ionic with Amazon Product API node module

Hi everyone!

I’ve just started a new Ionic project in which I want to make requests to the Amazon Product API. I chose to work with this node module.

But I’m having trouble including the module in my Ionic project. I bundled it with Browserify and included the bundle in the index.html. Then I tried to use it in my controller:
amazon = require('amazon-product-api');

But I’m always getting this error:
Can't find variable: require

Any idea what I can do to make it work?

Thanks in advance for your help!

I’ve found a workaround for this problem myself. Maybe it helps someone who is facing the same problem.

Since I needed a backend for my application anyway I know receive the Amazon Product API via my backend (Laravel) and this script.