Post notice

Prev Next

We are preparing a localization service for the content. We will do our best to provide the localization service as soon as possible.

You can check the announcement being posted.

request

GET https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/store/{storeID}/notice/posting
Item type Required Explanation Remark
projectId String O ProjectId in GamePot SDK
storeID String O Store ID (google, one, apple, galaxy)

요청 헤더

Header name Required Explanation
x-api-key O Authentication key issued by GamePot
accept-language X Language used

응답

Field name type Explanation
status Int Result (1: Success)
totalCount String Notice (image) inquiry (cases)
baseUrl String Object storage bucket URL
id String Unique ID (of the image)
store_id String Payment store (google, one, apple, galaxy)
enable Boolean Whether to activate the announcement
url String (Click action) url
scheme String (Click Action) scheme
startDate String Notice start date
endDate String Notice end date
lang String language
value String (baseUrl or less) resource address
default Boolean Default language

example

Request example

curl --request GET \
  --url https://dashboard-api.gamepot.ntruss.com/v1/api/project/12a0f2ff-xxxx-xxxx-xxxx-9c13ef02f5fs/store/google/notice/posting \
  --header 'accept-language: ko' \
  --header 'x-api-key: 86dcgffae064174543xxxx02a8801ce5a5xxxxxxxxxxxxx'

Example response

{
  "status": 1,
  "result": {
    "totalCount": 1,
    "baseUrl": "https://kr.object.ncloudstorage.com/gamepot-xxxxxxx",
    "edges": [
      {
        "node": {
          "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
          "store_id": "",
          "enable": true,
          "url": null,
          "scheme": null,
          "startDate": "Fri May 01 2020 15:21:00 GMT+0900 (Korean Standard Time)",
          "endDate": "Sun May 31 2020 18:24:00 GMT+0900 (Korean Standard Time)",
          "image": [
            {
              "lang": "ko",
              "value": "/notices/xxxxxxxxxxxxxxxxxxxxxxxx.png",
              "default": true
            }
          ]
        }
      }
    ]
  }
}

Error code

Common error code that occurs when requesting Gamepot Open API.

parameter Explanation
status Error code (1: Refer to Error code in case of success or failure )
message Error details
Error code Explanation
-1 If you used a key that is not on the dashboard
-2 The key of the dashboard and the key of the header are different.
-3 When using a key deleted from the dashboard
-4 The dashboard used unused keys.
-5 If the key has expired
-6 If there is no project ID
{
  "status": -6,
  "message": "projectId was wrong."
}