cancel
Showing results for 
Search instead for 
Did you mean: 

Magento REST API GetProducts returns product with 0 attributes count.

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Magento REST API GetProducts returns product with 0 attributes count.

I am using Magento REST api into my asp.net application. I want to download all products from my magentohost server to my asp.net C# application, but attributes count return 0 into products details. My code is shown below...

 

 var client = new MagentoApi()
             .SetCustomAdminUrlPart(AdminUrlPart)
             .Initialize(StoreUrl, ConsumerKey, ConsumerSerect)
             .AuthenticateAdmin(AdminUserName, AdminPassword);

 var filter = new Magento.RestApi.Models.Filter();                
filter.PageSize = 100;
filter.Page = 0; var sCode = Task.Run(async () => await client.GetProducts(filter)); MagentoApiResponse<IList<Magento.RestApi.Models.Product>> product = sCode.Result;

I have also done all setup into magento server. Please tell me what is the reason.