简体   繁体   English

我正在尝试更新 twilio 用户的用户身份但无法正常工作

[英]I am trying to update user identity of twilio user but not working

I am using Twilio and I want to update user identity but it is not updating, while other keys update is working fine like friendlyName, etc.我正在使用 Twilio,我想更新用户身份,但它没有更新,而其他密钥更新工作正常,如 friendlyName 等。

Can you please help me.你能帮我么。

Here is my code这是我的代码

$twilio->chat->v2->services(env('TWILIO_SERVICE_SID'))
                     ->users('US2424637a5007483eb4bb781574be82aa')
                     ->update([
                                  "Identity" => "smith",//not working
                                  "friendlyName" => "peter smith"
                              ]
                     );

Thanks in Advance!提前致谢!

You cannot update IDENTITY of user as per Twilio, yes this is only method to update user resources it will work for other data but for IDENTITY it will not work.您不能按照 Twilio 更新用户的身份,是的,这只是更新用户资源的方法,它适用于其他数据,但对于身份,它不起作用。

You can update user data in Attributes.您可以在属性中更新用户数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Twilio 聊天 - 将用户加入具有身份和友好名称的频道 - Twilio Chat - Joining a user to a channel with identity and friendlyName 它是如何工作的,我在 firebaseanimated 列表中尝试用户 uid - how its work i am trying user uid in firebaseanimated list 我可以用 twilio 检查在线或离线用户吗 - can i check online or offline user with twilio WSO2 身份服务器:更新用户失败 - WSO2 Identity Server: update user fails 我正在尝试将用户信息添加到 firebase createuserwithemailandpassword - i am trying to add user information to firebase createuserwithemailandpassword 有没有办法删除或更新用户发送给 Twilio Bot 的 Whatsapp 消息? - Is there a way to delete or update Whatsapp message sent by the User to Twilio Bot? WSO2 身份服务器:按用户名 api 搜索用户无效 - WSO2 Identity Server: Searching user by their username api not working 我正在尝试获取用户简历并将其写入另一个集合中的另一个文档中,但我得到了一个未来的实例<dynamic>在我的数据库中</dynamic> - I am trying to get a user bio and write it in another document in a different collection but I get an Instance of future<dynamic> in my database 登录 Twilio Flex 用户 SID - Logged in Twilio Flex User SID 用户帐户暂停在 WSO2 Identity Server 5.10.0 中不起作用 - User Account Suspension is not working in WSO2 Identity Server 5.10.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM