< Notifications

Special:ApiHelp/query+notifications

Example

Result
{
    "batchcomplete": "",
    "query": {
        "notifications": {
            "list": [
                {
                    "wiki": "mediawikiwiki",
                    "id": 1367332,
                    "type": "flowusertalk-post-edited",
                    "category": "edit-user-talk",
                    "section": "alert",
                    "timestamp": {
                        "utciso8601": "2021-06-09T20:04:25Z",
                        "utcunix": 1623269065,
                        "unix": "1623269065",
                        "utcmw": "20210609200425",
                        "mw": "20210609200425",
                        "date": "9 June"
                    },
                    "bundledIds": [
                        1367329,
                        1367327,
                        1367307
                    ],
                    "title": {
                        "full": "User talk:APaskulin (WMF)",
                        "namespace": "User_talk",
                        "namespace-key": 3,
                        "text": "APaskulin (WMF)"
                    },
                    "agent": {
                        "id": 906763,
                        "name": "USERNAME"
                    },
                    "targetpages": [],
                    "*": {
                        "header": "A post in \"<strong>\u202aHelp\u202c</strong>\" was edited multiple times on <strong>your talk page</strong>.",
                        "compactHeader": "A post in \"<strong>\u202aHelp\u202c</strong>\" was edited multiple times on <strong>your talk page</strong>.",
                        "body": "Hello, I have a question.",
                        "icon": "flow-post-edited",
                        "links": {
                            "primary": {
                                "url": "https://www.mediawiki.org/w/index.php?title=Topic:W4fwegrqvyipke51&topic_showPostId=wak4fftuljr2os4h&fromnotif=1&markasread=1367332%7C1367329%7C1367327%7C1367307&markasreadwiki=mediawikiwiki#flow-post-wak4fftuljr2os4h",
                                "label": "View post"
                            },
                            "secondary": [
                                {
                                    "url": "https://www.mediawiki.org/wiki/User_talk:APaskulin_(WMF)",
                                    "label": "\u202aAPaskulin (WMF)\u202c",
                                    "tooltip": "User talk:APaskulin (WMF)",
                                    "description": "",
                                    "icon": "userSpeechBubble",
                                    "prioritized": ""
                                }
                            ]
                        },
                        "iconUrl": "/w/extensions/Flow/modules/notification/icon/flow-post-edited-ltr.svg",
                        "bundledIds": [
                            1367329,
                            1367327,
                            1367307
                        ]
                    }
                },
                {
                    "wiki": "mediawikiwiki",
                    "id": 1370891,
                    "type": "flowusertalk-post-reply",
                    "category": "edit-user-talk",
                    "section": "alert",
                    "timestamp": {
                        "utciso8601": "2021-06-17T23:07:22Z",
                        "utcunix": 1623971242,
                        "unix": "1623971242",
                        "utcmw": "20210617230722",
                        "mw": "20210617230722",
                        "date": "17 June"
                    },
                    "bundledIds": [
                        1367323,
                        1367313
                    ],
                    "title": {
                        "full": "User talk:APaskulin (WMF)",
                        "namespace": "User_talk",
                        "namespace-key": 3,
                        "text": "APaskulin (WMF)"
                    },
                    "agent": {
                        "id": 906763,
                        "name": "USERNAME"
                    },
                    "targetpages": [],
                    "*": {
                        "header": "3 new replies on <strong>your talk page</strong> in \"<strong>\u202aHelp\u202c</strong>\".",
                        "compactHeader": "\u202a USERNAME\u202c: <em>Hello!\u00a0:) I don&#039;t know if you have seen the &quot;pastas&quot...</em>.",
                        "body": "",
                        "icon": "edit-user-talk",
                        "links": {
                            "primary": {
                                "url": "https://www.mediawiki.org/w/index.php?title=Topic:W4fwegrqvyipke51&topic_showPostId=wak2hrr30c42csln&fromnotif=1&markasread=1370891%7C1367323%7C1367313&markasreadwiki=mediawikiwiki#flow-post-wak2hrr30c42csln",
                                "label": "View post"
                            },
                            "secondary": [
                                {
                                    "url": "https://www.mediawiki.org/wiki/User_talk:APaskulin_(WMF)",
                                    "label": "\u202aAPaskulin (WMF)\u202c",
                                    "tooltip": "User talk:APaskulin (WMF)",
                                    "description": "",
                                    "icon": "userSpeechBubble",
                                    "prioritized": ""
                                }
                            ]
                        },
                        "iconUrl": "/w/extensions/Echo/modules/icons/edit-user-talk-progressive.svg",
                        "bundledIds": [
                            1367323,
                            1367313
                        ]
                    },
                    "bundledNotifications": [
                        {
                            "wiki": "mediawikiwiki",
                            "id": 1370891,
                            "type": "flowusertalk-post-reply",
                            "category": "edit-user-talk",
                            "section": "alert",
                            "timestamp": {
                                "utciso8601": "2021-06-17T23:07:22Z",
                                "utcunix": 1623971242,
                                "unix": "1623971242",
                                "utcmw": "20210617230722",
                                "mw": "20210617230722",
                                "date": "17 June"
                            },
                            "title": {
                                "full": "User talk:APaskulin (WMF)",
                                "namespace": "User_talk",
                                "namespace-key": 3,
                                "text": "APaskulin (WMF)"
                            },
                            "agent": {
                                "id": 906763,
                                "name": " USERNAME"
                            },
                            "targetpages": [],
                            "*": {
                                "header": "\u202a USERNAME\u202c posted a reply on <strong>your talk page</strong> in \"<strong>\u202aHelp\u202c</strong>\".",
                                "compactHeader": "\u202a USERNAME\u202c: <em>Hello!\u00a0:) I don&#039;t know if you have seen the...",
                                "icon": "edit-user-talk",
                                "links": {
                                    "primary": {
                                        "url": "https://www.mediawiki.org/w/index.php?title=Topic:W4fwegrqvyipke51&topic_showPostId=wb29azkwmbgkaagz&fromnotif=1&markasread=1370891&markasreadwiki=mediawikiwiki#flow-post-wb29azkwmbgkaagz",
                                        "label": "View post"
                                    },
                                    "secondary": [
                                        {
                                            "url": "https://www.mediawiki.org/wiki/User:Klein_Mu%C3%A7i",
                                            "label": "\u202a USERNAME\u202c",
                                            "tooltip": "",
                                            "description": "",
                                            "icon": "userAvatar",
                                            "prioritized": ""
                                        },
                                        {
                                            "url": "https://www.mediawiki.org/wiki/User_talk:APaskulin_(WMF)",
                                            "label": "\u202aAPaskulin (WMF)\u202c",
                                            "tooltip": "User talk:APaskulin (WMF)",
                                            "description": "",
                                            "icon": "userSpeechBubble",
                                            "prioritized": ""
                                        }
                                    ]
                                },
                                "iconUrl": "/w/extensions/Echo/modules/icons/edit-user-talk-progressive.svg"
                            }
                        },
                        {
                            "wiki": "mediawikiwiki",
                            "id": 1367323,
                            "type": "flowusertalk-post-reply",
                            "category": "edit-user-talk",
                            "section": "alert",
                            "timestamp": {
                                "utciso8601": "2021-06-09T19:44:03Z",
                                "utcunix": 1623267843,
                                "unix": "1623267843",
                                "utcmw": "20210609194403",
                                "mw": "20210609194403",
                                "date": "9 June"
                            },
                            "title": {
                                "full": "User talk:APaskulin (WMF)",
                                "namespace": "User_talk",
                                "namespace-key": 3,
                                "text": "APaskulin (WMF)"
                            },
                            "agent": {
                                "id": 906763,
                                "name": " USERNAME"
                            },
                            "targetpages": [],
                            "*": {
                                "header": "\u202a USERNAME\u202c posted a reply on <strong>your talk page</strong> in \"<strong>\u202aHelp\u202c</strong>\".",
                                "compactHeader": "\u202a USERNAME\u202c: <em>I hope this makes it work.",
                                "icon": "edit-user-talk",
                                "links": {
                                    "primary": {
                                        "url": "https://www.mediawiki.org/w/index.php?title=Topic:W4fwegrqvyipke51&topic_showPostId=wak4fftuljr2os4h&fromnotif=1&markasread=1367323&markasreadwiki=mediawikiwiki#flow-post-wak4fftuljr2os4h",
                                        "label": "View post"
                                    },
                                    "secondary": [
                                        {
                                            "url": "https://www.mediawiki.org/wiki/User:Klein_Mu%C3%A7i",
                                            "label": "\u202a USERNAME\u202c",
                                            "tooltip": "",
                                            "description": "",
                                            "icon": "userAvatar",
                                            "prioritized": ""
                                        },
                                        {
                                            "url": "https://www.mediawiki.org/wiki/User_talk:APaskulin_(WMF)",
                                            "label": "\u202aAPaskulin (WMF)\u202c",
                                            "tooltip": "User talk:APaskulin (WMF)",
                                            "description": "",
                                            "icon": "userSpeechBubble",
                                            "prioritized": ""
                                        }
                                    ]
                                },
                                "iconUrl": "/w/extensions/Echo/modules/icons/edit-user-talk-progressive.svg"
                            }
                        },
                        {
                            "wiki": "mediawikiwiki",
                            "id": 1367313,
                            "type": "flowusertalk-post-reply",
                            "category": "edit-user-talk",
                            "section": "alert",
                            "timestamp": {
                                "utciso8601": "2021-06-09T19:09:29Z",
                                "utcunix": 1623265769,
                                "unix": "1623265769",
                                "utcmw": "20210609190929",
                                "mw": "20210609190929",
                                "date": "9 June"
                            },
                            "title": {
                                "full": "User talk:APaskulin (WMF)",
                                "namespace": "User_talk",
                                "namespace-key": 3,
                                "text": "APaskulin (WMF)"
                            },
                            "agent": {
                                "id": 906763,
                                "name": " USERNAME"
                            },
                            "targetpages": [],
                            "*": {
                                "header": "\u202a USERNAME\u202c posted a reply on <strong>your talk page</strong> in \"<strong>\u202aHelp\u202c</strong>\".",
                                "compactHeader": "\u202a USERNAME\u202c: <em>Reuploaded them all and updated the links above...",
                                "icon": "edit-user-talk",
                                "links": {
                                    "primary": {
                                        "url": "https://www.mediawiki.org/w/index.php?title=Topic:W4fwegrqvyipke51&topic_showPostId=wak2hrr30c42csln&fromnotif=1&markasread=1367313&markasreadwiki=mediawikiwiki#flow-post-wak2hrr30c42csln",
                                        "label": "View post"
                                    },
                                    "secondary": [
                                        {
                                            "url": "https://www.mediawiki.org/wiki/User:Klein_Mu%C3%A7i",
                                            "label": "\u202a USERNAME\u202c",
                                            "tooltip": "",
                                            "description": "",
                                            "icon": "userAvatar",
                                            "prioritized": ""
                                        },
                                        {
                                            "url": "https://www.mediawiki.org/wiki/User_talk:APaskulin_(WMF)",
                                            "label": "\u202aAPaskulin (WMF)\u202c",
                                            "tooltip": "User talk:APaskulin (WMF)",
                                            "description": "",
                                            "icon": "userSpeechBubble",
                                            "prioritized": ""
                                        }
                                    ]
                                },
                                "iconUrl": "/w/extensions/Echo/modules/icons/edit-user-talk-progressive.svg"
                            }
                        }
                    ]
                }
            ],
            "continue": "1621295145|1357008",
            "rawcount": 25,
            "count": "25",
            "seenTime": {
                "alert": "2021-08-31T20:17:56Z",
                "message": "2021-06-09T02:55:22Z"
            }
        }
    }
}

Special:ApiHelp/echomarkread

Example

Note: In this example, all parameters are passed in a GET request just for the sake of simplicity. However, action=echomarkread requires POST requests.

Result
{
    "query": {
        "echomarkread": {
            "result": "success",
            "rawcount": 0,
            "count": "0"
        }
    }
}

Special:ApiHelp/echomarkseen

This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.