日別接続者(DAU)照会
    • PDF

    日別接続者(DAU)照会

    • PDF

    Article Summary

    当該コンテンツは、ローカリゼーションサービスを準備しております。早急にローカライズサービスをご提供できるよう、努めております。

    日別接続者を照会することができます。

    要請

    GET https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/user/statistics/dau?startDate={startDate}&endDate={endDate}
    
    項目タイプ必須かどうか説明備考
    projectIdStringOGamePot SDK의 projectId
    startDateStringX照会しようとする開始日YYYY-MM-DD
    endDateStringX照会しようとする最後の日付YYYY-MM-DD
    参考

    Queryに startDate, endDateを入れなければ、最近30日間のデータを照会します。

    要請Header

    Header名必須かどうか説明
    x-api-keyOGamePotで発行する認証key
    accept-languageX使用言語

    応答

    フィールド名タイプ説明
    statusInt結果値 (1: 成功)
    totalCountIntdau 照会結果(件)数
    dateString集計日時
    countInt(該当日付) DAU

    例示

    要請例

    curl --request GET \
    --url https://dashboard-api.gamepot.ntruss.com/v1/api/project/12a0f2ff-xxxx-xxxx-xxxx-9c13ef02f5fs/user/statistics/dau?startDate=2020-03-01&endDate=2020-06-01
    --header 'accept-language: ko' \
    --header 'x-api-key: 86dcgffae0641745432as02a8801ce5a5475f764fxxxxxxxxx'
    

    応答例

    {
      "status": 1,
      "result": {
        "totalCount": 3,
        "edges": [
          {
            "node": {
              "date": "Fri Apr 10 2020 09:00:00 GMT+0900 (Korean Standard Time)",
              "count": 2
            }
          },
    
          ...
    
          {
            "node": {
              "date": "Tue Apr 14 2020 09:00:00 GMT+0900 (Korean Standard Time)",
              "count": 4
            }
          }
        ]
      }
    }
    

    エラーコード

    Gamepot Open APIリクエスト時に発生する共通エラーコードです。

    parameter説明
    statusエラーコード(1: 成功、失敗時Error code参考)
    messageエラー詳細説明
    エラーコード説明
    -1ダッシュボードにないkeyを使用した場合
    -2ダッシュボードのkeyとheaderのkeyが異なる場合
    -3ダッシュボードで削除したkeyを使用した場合
    -4ダッシュボードで未使用に処理されたkeyを使用した場合
    -5keyが切れた場合
    -6プロジェクトIDがない場合
    {
      "status": -6,
      "message": "projectId was wrong."
    }
    

    日別接続者(DAU)照会APIの要請時に発生するエラーコードです。

    エラーコード説明
    -11startDate の値のフォーマットが正しくない場合、 YYYY-MM-DD 形式のみ可能
    -12endDate の値のフォーマットが正しくない場合、YYYY-MM-DD 形式のみ可能

    この記事は役に立ちましたか?

    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.