fork download
  1. /<?php
  2. $request = "http://w...content-available-to-author-only...e.com/dev/api.ashx?pricetreeId=11072&apikey=7770AD31-382F-4D32-8C36-3743C0271699";
  3. $response = file_get_contents($request);
  4. $results = json_decode($response, TRUE);
  5. ?>
  6.  
  7. {
  8. "status_code": 200,
  9. "status_message": "Success",
  10. "count": 4,
  11. "data": [
  12. {
  13. "PriceTree_Id": 268729,
  14. "Seller_Name": "Snapdeal",
  15. "Best_Price": "11,989.00",
  16. "In_Stock": "Yes",
  17. "Product_Name": "Lg 190 Ltr Gl-b205kgsl Direct Cool Single Door Refrigerator - Graphite Steel",
  18. "Product_Color": "",
  19. "Uri": "http://w...content-available-to-author-only...l.com/product/lg-190-ltr-glb205kgsl-direct/652991238198"
  20. },
  21. {
  22. "PriceTree_Id": 268729,
  23. "Seller_Name": "Flipkart",
  24. "Best_Price": "12,191.00",
  25. "In_Stock": "Yes",
  26. "Product_Name": "LG GL- B205KGSL 190 L Single Door Refrigerator",
  27. "Product_Color": "",
  28. "Uri": "http://d...content-available-to-author-only...t.com/dl/lg-gl-b205kgsl-190-l-single-door-refrigerator/p/itme5sgwwcwgqsrp?pid=RFRE5SGW4NDVDMAX"
  29. },
  30. {
  31. "PriceTree_Id": 268729,
  32. "Seller_Name": "Amazon",
  33. "Best_Price": "14,490.00",
  34. "In_Stock": "Yes",
  35. "Product_Name": "LG GL-B205KGSL(GS) Direct-cool Single-door Refrigerator (190 Ltrs, 4 Star Rating, Grephite Steel)",
  36. "Product_Color": "",
  37. "Uri": "http://w...content-available-to-author-only...n.in/gp/offer-listing/B010T3WRF8?condition=new&sort=price"
  38. },
  39. {
  40. "PriceTree_Id": 268729,
  41. "Seller_Name": "Infibeam",
  42. "Best_Price": "13,607.00",
  43. "In_Stock": "Yes",
  44. "Product_Name": "LG 190 L DIRECT COOL REFRIGERATOR GL-B205KGSL, grephite steel",
  45. "Product_Color": "",
  46. "Uri": "http://w...content-available-to-author-only...m.com/Home_Appliances/lg-190-l-direct-cool-refrigerator-gl-b205kgsl/P-hoap-93884566988-cat-z.html"
  47. }
  48. ]
  49. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
/<?php
^
Main.java:1: error: class, interface, or enum expected
/<?php
 ^
Main.java:1: error: class, interface, or enum expected
/<?php
  ^
Main.java:1: error: class, interface, or enum expected
/<?php
   ^
Main.java:3: error: class, interface, or enum expected
$response = file_get_contents($request);
^
Main.java:4: error: class, interface, or enum expected
$results = json_decode($response, TRUE);
^
Main.java:5: error: class, interface, or enum expected
?>
^
7 errors
stdout
Standard output is empty