Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once("snapdealApiClass.php");
- // Get affiliateID and token from https://affiliate.snapdeal.com
- // Set snapdeal affiliateID and token
- $affiliateID = '75183';
- $token = '483fe22b844861d9abd19de672fc2f';
- $sdObj = new snapdealApi($affiliateID, $token);
- $url = 'http://affiliate-feeds.snapdeal.com/feed/api/dod/offer';
- $result = snapdealApi::getData($url,'json');
- //echo json_encode( array_values( $result) )
- //var myJsonString = JSON.stringify($result);
- var_dump($result );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement