Click here to Skip to main content
15,885,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am newer for API. I am going to use FlipKart Product Affiliate using Its API.
I have created my Fk-Affiliate-Id and Affiliate-Token.
I am calling its given url
https://affiliate-api.flipkart.net/affiliate/api/<your affiliate_tracking_id="">.xml
Here i am getting an XML file for all category
and that XML file having an URL for all product of that category.
I am calling that URL also with my Fk-Affiliate-Id and Affiliate-Token.
But getting an error when calling that URL.
Error is.
Remote server return an error: 403 Forbidden

I have a request to all that please suggest me how can i make correct URL for
Product.

http://www.flipkart.com/affiliate/apifaq[^]
Posted
Updated 5-Aug-17 19:28pm
Comments
shyamsundar singh 2-Jun-15 12:51pm    
Hi You need use web client for appending affilate keys to header.
Here is the working example set:
var wc = new WebClient();

wc.Headers.Add("Fk-Affiliate-Id", ConfigurationManager.AppSettings["Fk-AffiliateId"]);
wc.Headers.Add("Fk-Affiliate-Token", ConfigurationManager.AppSettings["Fk-AffiliateToken"]);

string productFeedXml = wc.DownloadString(categoryUrl); categoryUrl you can get from category directly, you need to pass that category url here.
King Fisher 30-Sep-17 3:27am    
generate new token, and try with that.

See 17th question in the link you have posted.
 
Share this answer
 
Comments
nitin-aem 8-May-15 6:05am    
Hi,

Can anybody help me with this only ?
Member 12260858 28-Jun-17 11:21am    
Please help in consuming flipkart affiliate API's in Asp.Net.
I am getting this error "
The remote server returned an error: (403) Forbidden.
"
 
Share this answer
 
Comments
Graeme_Grant 6-Aug-17 3:05am    
This is a 3-year-old question. Please start a new question and do not post questions as solutions.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900