当我尝试使用REST API PUT请求更新用户时。我收到错误"您不是此对象的所有者"。
请求
PUT /users/14055179.json HTTP/1.1
Host: api.quickblox.com
Content-Type: application/json
QuickBlox-REST-API-Version: 0.1.0
QB-Token: 10b89fb07e0b871230d5c8ce662aa70e4429f761
Cache-Control: no-cache
Postman-Token: 5d89f9ba-4da2-8ba2-5e82-0de2b57a2b3f
{"user": {"full_name": "hpmakwana"}}
回复:
{
"errors": {
"base": [
"You are not owner of this object"
]
}
}
答案 0 :(得分:3)
Quickblox提供了两次会话:
对于写入,我们必须创建用户会话令牌。
了解更多详情click here