1. 通知

通知オブジェクト

通知オブジェクトは、通知タイプおよびその通知の送信方法を定義するチャネルの一覧を表します。

オブジェクトは、次のプロパティを持ちます。

名前説明
notificationType文字列Option List NotificationTypes にあるアイテムを指す文字列。
isUserOwnedブール値グローバルな通知であるか、特定のユーザーに割り当てられた通知であるかを定義するブール値。
userリンク通知の対象であるユーザー オブジェクトへのリンク (ユーザー所有の場合)。
channels配列各チャネルのチャネル名とブール値 is_checked を収めた配列。

{
    "id": 16,
    "notificationtype": "SearchChanged",
    "notificationtypelabel": "Saved search results changed",
    "is_user_owned": false,
    "created_on": "2017-04-11T01:11:12.149588Z",
    "created_by": {
        "href": "https://stylelabs_example.com/api/entities/6",
        "title": "The user who created the entity"
    },
    "modified_on": "2017-04-11T01:11:12.149588Z",
    "modified_by": {
        "href": "https://stylelabs_example.com/api/entities/6",
        "title": "The user who last modified the entity"
    },
    "channels": [
        {
            "channelname": "EmailNotification",
            "is_checked": true
        },
        {
            "channelname": "RealTimeNotification",
            "is_checked": false
        }
    ],
    "UserId": 0,
    "self": {
    "href": "https://stylelabs_example.com/api/notifications",
    "title": "This Notification."
    }
}
この記事を改善するための提案がある場合は、 お知らせください!