User:Barbontempo/Sandbox/API:ClearHasMsg/en
![]() | This page is part of the MediaWiki Action API documentation. |
clearhasmsg | ||
---|---|---|
Clears the hasmsg flag for the current user. This module cannot be used as a generator. | ||
Prefix | ||
Required rights | none | |
Post only? | Yes | |
Generated help | Current | |
Version added |
|
API documentation
edit
action=clearhasmsg(main | clearhasmsg)
Clears the Example:
|
Example
edit
GET Request
editDescription of script
Response
edit{
"batchcomplete":""
}
Sample code
edithello.py
#!/usr/bin/python3
"""
hello.py
MediaWiki Action API Code Samples
Demo of `...` module
MIT license
"""
import requests
S = requests.Session()
URL = "https://en.wikipedia.org/w/api.php"
PARAMS = {
'action':"query",
'format':"json"
}
R = S.get(url=URL, params=PARAMS)
DATA = R.json()
print(DATA)
Demo app(s)
edit- Add a link to the demo app. Embed an image of the demo if applicable
Possible errors
editCode | Info |
---|---|
Parameter history
edit- v1.x: Introduced
parameter_1
,parameter_2
- v0.x: Deprecated
parameter_3
Additional notes
editSee also
edit- Add link to documentation of related modules