User:Gabriel100xd/Sandbox/API:ClearHasMsg
This page is part of the MediaWiki Action API documentation. |
API documentation
editTo embed the documentation of an API module, use the template below. Remember to replace "module name" with the name of an actual module. All main modules are here.
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