当我在 apigee 中运行 groupon api for division 等于 los angeles 时,出现了数千笔交易,但是当我在下面运行我的代码时,我只得到了 50 个?请帮忙
var $result = $('#container')
$.ajax({
type: 'GET',
url: 'https://api.groupon.com/v2/deals.json? client_id=b252ad3634a4ab2985b79d230ccc4e49a3ea9d19&show=all&division_id=los-angeles',
dataType: 'jsonp',
}).done(function(data){
console.log(data)
$.each(data.deals, function(idx, deal){
var html = '<div class="dealSmall"><div class="image"><div class="merchant">' + deal.merchant.name + '<img src="' + deal.grid4ImageUrl + '"/></div></div><div class="dealDetail"><div class="dealName">' + deal.announcementTitle+ '</div><div class="price">' + deal.options[0].price.formattedAmount + '</div></div></div>'
$result.append(html)
})
});
});