Skip to content

Instantly share code, notes, and snippets.

@chowmean
Created August 25, 2015 18:54
Show Gist options
  • Select an option

  • Save chowmean/71cdac6bc11020565f67 to your computer and use it in GitHub Desktop.

Select an option

Save chowmean/71cdac6bc11020565f67 to your computer and use it in GitHub Desktop.
Getting details of product from flipkart using api.
import requests
product="MOBE8AHAT4SFH3PJ"
url="https://affiliate-api.flipkart.net/affiliate/product/json?id="
url=url+product
headers = {'Fk-Affiliate-Id': 'affliate_id','Fk-Affiliate-Token':'YOUR token'}
r = requests.get(url, headers=headers)
print r.content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment