vishal singh

vishal singh

  • NA
  • 55
  • 16.7k

Unauthorized Error While Accesing Filpkart Marketplace API

Oct 2 2018 2:03 PM
I am Getting error while accesing flipkart marketplace api Can someone please guide me where i am doing wrong.
 
using (HttpClient httpClient = new HttpClient())
{
HttpContent content = new FormUrlEncodedContent(new[]
{
new KeyValuePair<string, string>("appid:app-secret", "appID:appSecret"),
});
content.Headers.Clear();
content.Headers.Add("Content-Type", "application/octet-stream");
HttpResponseMessage response = httpClient.PostAsync("https://api.flipkart.net/oauth-service/oauth/token?grant_type=client_credentials&scope=Seller_Api", content).Result;
}
 
And how to access flipkart curl in c# 

Answers (3)