UserNotification

특성

pathstring
idstring
출력 전용
sourceobject
payloadobject
기본 URL

https://apis.roblox.com/cloud
UserNotification 리소스

{
"path": "users/123/notifications/01234567-ABCD-1234-ABCD-0123456789AB",
"id": "a6746f2e-2cc6-11ee-be56-0242ac120002",
"source": {
"universe": "universes/96623001"
},
"payload": {
"type": "TYPE_UNSPECIFIED",
"messageId": "5dd7024b-68e3-ac4d-8232-4217f86ca244",
"parameters": {
"key": {
"stringValue": "bronze egg"
}
},
"joinExperience": {
"launchData": "Launch Data"
},
"analyticsData": {
"category": "Bronze egg hatched"
}
}
}

UserNotification

Create User Notification

POST /cloud/v2/users/{user}/notifications
범위
user.user-notification:write
요청경로 매개 변수
userstring
필수
요청 본문UserNotification
POST /cloud/v2/users/{user}/notifications

curl -L -X POST 'https://apis.roblox.com/cloud/v2/users/{user}/notifications' \
-H 'x-api-key: {your-api-key}' \
--data '{ \
"source": { \
"universe": "universes/96623001" \
}, \
"payload": { \
"type": "TYPE_UNSPECIFIED", \
"messageId": "5dd7024b-68e3-ac4d-8232-4217f86ca244", \
"parameters": { \
"key": { \
"stringValue": "bronze egg" \
} \
}, \
"joinExperience": { \
"launchData": "Launch Data" \
}, \
"analyticsData": { \
"category": "Bronze egg hatched" \
} \
} \
}'
응답

{
"path": "users/123/notifications/01234567-ABCD-1234-ABCD-0123456789AB",
"id": "a6746f2e-2cc6-11ee-be56-0242ac120002"
}