我正在尝试制作一个聊天沙盒 api,也就是创建用户、频道并将用户添加到频道。问题是每次我调用 restApi 来创建一个新用户时,它都不会使用属性或友好名称。代码如下:
$user->chat->services($serviceSid)->users->create(
array(
'identity' => $identity,
'friendlyName' => $friendlyName,
'attributes' => $attributes,
'roleSid' => $roleSid
)
);
谢谢。