Quickblox Error : You are not owner of this object on API call to PUT /users/
Quickblox Error : You are not owner of this object on API call to PUT /users/
当我尝试使用 REST API PUT 请求更新用户时。我收到一个错误 "You are not owner of this object"。
要求:
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"
]
}
}
Quickblox 提供两种类型的会话:
- 应用程序会话令牌(仅限读取权限)
- 用户会话令牌(读+写权限)
对于写入,我们必须创建用户会话令牌。
更多详情click here
当我尝试使用 REST API PUT 请求更新用户时。我收到一个错误 "You are not owner of this object"。
要求:
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"
]
}
}
Quickblox 提供两种类型的会话:
- 应用程序会话令牌(仅限读取权限)
- 用户会话令牌(读+写权限)
对于写入,我们必须创建用户会话令牌。
更多详情click here