Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2. include_once("snapdealApiClass.php");
  3. // Get affiliateID and token from https://affiliate.snapdeal.com
  4. // Set snapdeal affiliateID and token
  5. $affiliateID = '75183';
  6. $token = '483fe22b844861d9abd19de672fc2f';
  7. $sdObj = new snapdealApi($affiliateID, $token);
  8. $url = 'http://affiliate-feeds.snapdeal.com/feed/api/dod/offer';
  9. $result = snapdealApi::getData($url,'json');
  10.  
  11. //echo json_encode( array_values( $result) )
  12. //var myJsonString = JSON.stringify($result);
  13.  
  14.  
  15. var_dump($result );
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement