App reviews, troubleshooting, and recommendations
I am new to Shopify, with referrence of Dev. docs an app developed using .Net Framework and installed it in partner api to get total products count with the client request uri as "xxxx.myshopify.com/admin/api/2023-10/products/count.json".
There is no error on the request but getting always with "count":0 as response, though the store is having many products . Anybody can help me to figure out the code/configuration where I'm doing wrong to get the total products count.
Here's the C# code to get products count.
var client = new RestClient("https://xxx.myshopify.com/");
var request = new RestRequest("admin/api/2023-10/products/count.json", Method.Get);
request.RequestFormat = DataFormat.Json;
request.AddHeader("X-Shopify-Access-Token", "xxxtoaken");
var response = client.ExecuteAsync<string>(request);
var r = JsonConvert.DeserializeObject<dynamic>(response.Result.Content);
var count = r.count; // here r.count={0}
Hi @ds_
Can you share the store URL.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024