【发布时间】:2020-03-16 22:58:55
【问题描述】:
我正在使用此代码:
Authentication authentication = new Authentication("myAccessToken");
RestClientFactory restClientFactory = new RestClientFactory(authentication);
var _companyClient = new CompanyClient(restClientFactory);
var companyCustomAttributes = new Dictionary<string, object>()
{
{ "name", "TradingName" },
{ "company_id_str", "5432" },
{ "isoCode", "AU" },
{ "regionCode", "VIC" },
{ "isPropertyManagement", false },
{ "isSales", false },
{ "setupComplete", false },
{ "isSubscription", false },
{ "subscriptionSetupComplete", false },
{ "tradingName", "TradingName" },
{ "ofSMS", false },
{ "ofBankTransfer", false },
{ "ofCommercial", false },
{ "isEmailValidated", true },
{ "isLocked", false },
{ "isOutgoingEmailValidated", true },
{ "banks", "" },
{ "earlyAdopterProgram", false },
{ "propertyCount", 0 }
};
var company = new Company();
company.company_id = "5432";
company.custom_attributes = companyCustomAttributes;
var createdCompany = _companyClient.Create(company);
createdCompany 不为空:
但是公司没有显示在 UI 中:
为什么公司没有显示在 UI 中?
对讲 API 版本 = 1.4
Intercom.Dotnet.Client 版本 = 2.1.1
提交的 Github 问题: https://github.com/intercom/intercom-dotnet/issues/158
【问题讨论】: