图谱 API 版

User Notifications

读取

你无法在此端点执行该操作。

创建

你可以通过下列路径向 notifications 连线发出 POST 请求:
When posting to this edge, no Graph object will be created.

参数

参数描述
bot_message_payload_elements
string

Optional bot message payload used for sending a customizable generic template XMA to the recipient if a bot message is sent. If not specified, then a standard generic template XMA will be sent using just the message title and body.

filtering
list<enum{groups, groups_social, ema}>

Notification filters to apply.

href

The relative path and GET params used in the a2u target url.

label
string

Optional label to group similar updates.

message
JSON object

Contains the title, main message body, and media image for the notification.

title
string

title

必填
body
string

body

必填
media_url
URI

media_url

notif_ids
list<string>

The notification ids to act on.

payload
string

Optional custom payload that will be added to the URL encoding of the game that is generated when the notification is clicked.

read
boolean

Indicates that the provided notification ids should be marked as read

ref
string

A reference param used for logging

schedule_interval
int64

Time from now (in seconds) that the notification will be sent

seen
boolean

Indicates that the provided notification ids should be marked as seen

template

Used for creating a2u notifications.

支持表情符号
type
enum{generic, content_update}

Notification type

返回类型

这个端点支持先写后读,并会读取接收你的 POST 请求的节点。
Struct {
success: bool,
notification_id: int32,
}

错误代码

错误描述
613Calls to this api have exceeded the rate limit.
288Sending notificatons to user requires the extended permission app_notifications
100Invalid parameter
368The action attempted has been deemed abusive or is otherwise disallowed
200Permissions error
190Invalid OAuth 2.0 Access Token

更新

你无法在此端点执行该操作。

删除

你无法在此端点执行该操作。