MENU
      활용예제

        활용예제


        기사 요약

        사용예제

        전체 온라인 수 조회 방법

        Request

        • Method : POST
        • URI : https://dashboard-api.ncloudchat.naverncp.com/v1/api/subscriptions
        GET
        url : https://dashboard-api.ncloudchat.naverncp.com/v1/api/subscriptions?filter=%7B%22online%22%3Atrue%7D&sort=%7B%22created_at%22%3A%22-1%22%7D&option=%7B%22count%22%3Atrue%7D
        Header : 'content-type: application/json'
        Header 'x-api-key: 86dcgffae0xxxxxxxxxxxxxx'
        Header : 'x-project-id: ec8231b2-6b20-4ad1-xxxx-xxxxxxxxx'
        Plain text
        HeaderTypeRequiredDescription
        X-API-KEYStringO대시보드 > 설정 > 일반 > API 키
        X-PROJECT-IDStringO대시보드 > 설정 > 일반 > 프로젝트 ID
        파라미터타입필수 여부설명
        filterStringO{"online":true} 현재 온라인인 사용자 조회
        sortStringX정렬 하고자 하는 필드의 필터를 정의 합니다.
        optionStringX{"count":true} 전체수만 가져옵니다.

        Response

        성공

        {
          "data": {
            "subscriptions": {
              "totalCount": 5227,
              "edges": null
            }
          }
        }
        Plain text
        AttributeTypeDescription
        totalCountNumber프로젝트ID

        실패

        {
            "status": -1,
            "message": "오류 메시지"
        }
        Plain text
        AttributeTypeDescription
        codeInt결과 값 (1: 성공, 실패 시 Error code 참고)
        errorString오류 내용

        이 문서가 도움이 되었습니까?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.