채팅방 접속중인 사용자 보기 - DevCamp2Flame/FlameTalk_Server GitHub Wiki
Presence get inside chatroom user API
채팅 서버에서 프레젠스 서버로 요청할 때 필요한 API 로, 클라이언트는 테스트하지 않아도 됩니다.
Request
Method
GET
URL
/api/presence/{roomId}
Header
Method |
Parameter |
Description |
Content-Type |
application/json |
|
Response
Header
Method |
Parameter |
Description |
statusCode |
{statusCode} |
|
Body
Field |
Type |
Description |
status |
Integer |
응답 코드 |
message |
String |
응답 메세지 |
data |
Object |
사용자 정보 리스트. data 참고 |
data
Field |
Type |
Description |
userId |
String |
사용자 id |
deviceId |
String |
기기 id |
SUCCESS example
[
"124/7810",
"123/789"
]
Error Code
Code |
Error Messsage |
400 |
Bad Request |
401 |
Unauthorized |
500 |
Server Error |
FAIL example
[]