@pusher/chatkit-server
Advanced tools
Changelog
getUsersByIds
is now getUsersById
GetUsersByIdsOptions
is now GetUsersByIdOptions
roleName
is now just name
getRoom
, getRooms
and getRoomMessages
no longer require a userId
getRooms
now takes includePrivate
and fromID
parameters for looking up private rooms and paginating by IDgetUser
sendMessage
deleteMessage
updateRoom
deleteRoom
addUsersToRoom
removeUsersFromRoom
setReadCursor
getReadCursor
getReadCursorsForUser
getReadCursorsForRoom
cursorsRequest
See the documentation for details on usage.
Changelog
0.12.0 - 2018-04-23
authenticate
now returns an object like this:{
"status": 200,
"headers": {
"Some-Header": "some-value"
},
"body": {
"access_token": "an.access.token",
"token_type": "bearer",
"expires_in": 86400
}
}
where:
status
is the suggested HTTP response status code,headers
are the suggested response headers,body
holds the token payload.If there's an error with the authentication process then the return value will be the same but with a different body
. For example:
{
"status": 422,
"headers": {
"Some-Header": "some-value"
},
"body": {
"error": "token_provider/invalid_grant_type",
"error_description": "The grant_type provided, some-invalid-grant-type, is unsupported"
}
}
If your client devices are running the:
>= 0.8.0
of chatkit-swift.