Friday 15 January 2010

Calling Flipkart Api in asp.net c# -



Calling Flipkart Api in asp.net c# -

i calling flip kart api in asp.net c# .but got next error : 401 authorization.

i included flip kart token , affiliate id in rest header per prerequisites , category

url also.so please tell me why getting error. calling restapi using httpclientrequest , asp.net framework 4.0

first need product category link list simple 'get' using url

https://affiliate-api.flipkart.net/affiliate/api/<your-affiliate-id>.<json or xml>

the response have list of various categorizes , url. these urls require http authentication headers (your affiliate-id , access token) in request. can add together :-

webclient wc = new webclient(); wc.headers.add("fk-affiliate-id", "blueskyvic"); wc.headers.add("fk-affiliate-token", "your access code"); string res = wc.downloadstring("https://affiliate-api.flipkart.net/affiliate/feeds/blueskyvic/category/v1:6bo-ul6.json?expiresat=1420832915393&sig=6c1167c0d141bd3edab28f9f2a980a30");//tv_video_accessories

the response have nexturl property give listing of next 50 items in category.

asp.net api

No comments:

Post a Comment