C# 无法在内部通信中创建公司
我正在使用以下代码:C# 无法在内部通信中创建公司,c#,.net-4.5,intercom,C#,.net 4.5,Intercom,我正在使用以下代码: Authentication authentication = new Authentication("myAccessToken"); RestClientFactory restClientFactory = new RestClientFactory(authentication); var _companyClient = new CompanyClient(restClientFactory); var companyCustomAttributes = new
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);
Authentication Authentication=新的身份验证(“myAccessToken”);
RestClientFactory RestClientFactory=新的RestClientFactory(身份验证);
var_companyClient=新的companyClient(restClientFactory);
var companyCustomAttributes=新字典()
{
{“名称”,“交易名称”},
{“公司id街”,“5432号”},
{“等码”,“AU”},
{“regionCode”,“VIC”},
{“isPropertyManagement”,false},
{“isSales”,false},
{“setupComplete”,false},
{“isSubscription”,false},
{“subscriptionSetupComplete”,false},
{“tradingName”,“tradingName”},
{“ofSMS”,false},
{“of bankTransfer”,false},
{“of commercial”,false},
{“isEmailValidated”,true},
{“isLocked”,false},
{“isOutgoingEmailValidated”,true},
{“银行”,“},
{“earlyadopergram”,false},
{“propertyCount”,0}
};
var公司=新公司();
company.company_id=“5432”;
company.custom\u attributes=companyCustomAttributes;
var createdCompany=\u companyClient.Create(company);
createdCompany
不为空:
但该公司并未在UI中显示:
为什么公司没有显示在UI中
内部通信API版本=1.4
Intercom.Dotnet.Client版本=2.1.1
提交的Github问题:
如果没有用户连接,该公司将不会出现。这可能是设计的,因为这非常烦人。为什么不在某个地方向公司展示一条消息,表明没有用户连接到它。@Dave我早在2017年就向他们申请了这项功能,但我认为这不符合他们的用途。我所做的是在公司中有用户/潜在客户之前不创建公司。