dongwen2896 2016-09-17 14:14
浏览 25

没有EU Groupon API结果

For some reasons I can't print any results from the European Groupon API feeds while the US feed works fine:

The US feed URL can be found on the US Groupon site - see: https://partner-api.groupon.com/help/deal-api (Scroll down to "Location Sample Calls").

See below my PHP code to print the results from the US feed in XML, this works fine i.e. I can print the results from the Groupon API.

<?php
$xml=simplexml_load_file("https://partner-api.groupon.com/deals.xml?tsToken=US_AFF_0_201236_212556_0&division_id=amarillo&offset=0&limit=10") or die("Error: Cannot create object");
print_r($xml);
?>

Now when I try one of the European countries feed with exactly the same code, I cannot print any results and I have the following error: Error: Cannot create object.

For the EU, The feed URL can be found on the EU Groupon site - see: https://partner-int-api.groupon.com/help/deal-api (Scroll down to "Location Sample Calls").

See below my PHP code to print the results from the IE feed in XML, this does not work while the code is exactly the same as the US above, what's strange is that it works in Xampp, and it also works if you call the IE feed URL in a browser. But I can't print any results when I put that piece of code below on my server and call it in my browser while it works fine with the US.

Thanks for your help.

<?php
$xml=simplexml_load_file("https://partner-int-api.groupon.com/deals.xml?country_code=IE&tsToken=IE_AFF_0_200012_212556_0&division_id=dublin&offset=0&limit=20") or die("Error: Cannot create object");
print_r($xml);
?>
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度