如何获得PrestaSharp的制造商?

时间:2018-11-12 16:38:16

标签: c# web-services prestashop-1.6

我需要将存储在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);

我在做什么错了?

0 个答案:

没有答案