您的解決方案是正確的。您可以使用Infusionsoft SDK輕鬆完成此操作。 下面是C#SDK創建聯繫人(引導)的代碼。
const string application = "ab123";
const string apiKey = "<API Key>";
var customer = new Customer(application, apiKey);
var client = customer.Connect();
client.MethodListener = new ConsoleMethodListener();
client.ContactService.Add(setter =>
{
setter.Set(c => c.FirstName, "FirstName1");
setter.Set(c => c.LastName, "LastName1");
setter.Set(c => c.Company, "FirstCompany");
setter.Set(c => c.Email, "[email protected]");
setter.Set(c => c.Leadsource, "Website");
setter.Set(c => c.Phone1, "0405879856");
});