我需要将存储在PrestaShop 1.6中的制造商写入.txt文件,但它只返回此消息存在的制造商数量:
Bukimedia.PrestaSharp.Entities.manufacturer
我的代码:
string BaseUrl = Convert.ToString(inifile.Read("Prestashop", "Url/api"));
string Account = Convert.ToString(inifile.Read("Prestashop", "ApiKey")); ;
string Password = "";
ManufacturerFactory ManufacturerFact = new ManufacturerFactory(BaseUrl, Account, Password);
List<manufacturer> manufacturers = ManufacturerFactory.GetAll();
var message = string.Join(Environment.NewLine, manufacturers);
string path = @"path";
File.AppendAllText(path, message, Encoding.UTF8);
我在做什么错了?