Hi,
I'm trying to use mvt:call to make an api request with an Authorization header attribute:
<mvt:call ACTION="'http://api.resellerratings.com/v1/product/reviews/reviews.json?sku=soclean2-cpap-bipap-cleaner-sanitizer-betterrest&perPage=100&page=1'" METHOD="'GET'"
headers="'Authorization:Bearer seUQBDzxfAYggrN5RZRWXT0Bcgs382iWEP8YQA0M'">
<mvt:eval expr= "s.callvalue " />
</mvt:call>
The request is denied when I access the page, but if I use that bearer token in Postman, the request returns JSON. So I'm guessing I'm going about this wrong...
Any ideas? Do I need to pass in the Host Info in the header? If so, how do i pass in multiple header parameters?
any help greatly appreciated.
Paul
I'm trying to use mvt:call to make an api request with an Authorization header attribute:
<mvt:call ACTION="'http://api.resellerratings.com/v1/product/reviews/reviews.json?sku=soclean2-cpap-bipap-cleaner-sanitizer-betterrest&perPage=100&page=1'" METHOD="'GET'"
headers="'Authorization:Bearer seUQBDzxfAYggrN5RZRWXT0Bcgs382iWEP8YQA0M'">
<mvt:eval expr= "s.callvalue " />
</mvt:call>
The request is denied when I access the page, but if I use that bearer token in Postman, the request returns JSON. So I'm guessing I'm going about this wrong...
Any ideas? Do I need to pass in the Host Info in the header? If so, how do i pass in multiple header parameters?
any help greatly appreciated.
Paul
Comment