0 bookmark(s) - Sort by: Date ↓ / Title /
To call three HTTP APIs, write this script Try me 1 2 3 4 5 6 7 8 9 10 11 12 prodid = select ProductID 0 » .Value from eBay.FindProducts where QueryKeywords = 'macbook pro'; details = select * from eBay.ProductDetails where ProductID in ('{prodid}') and ProductType = 'Reference'; reviews = select * from eBay.ProductReviews where ProductID in ('{prodid}') and ProductType = 'Reference';
return select d.ProductID 0 » .Value as id, d.Title as title,
d.ReviewCount as reviewCount, r.ReviewDetails.AverageRating as rating
from details as d, reviews as r
where d.ProductID 0 » .Value = r.ProductID.Value
via route '/myapi' using method get;
and curl away
1
curl http://
First / Previous / Next / Last
/ Page 1 of 0