Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4165183
thank_revision() in site.py v1.0
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
darthbhyrava
Jun 14 2016, 3:44 PM
2016-06-14 15:44:06 (UTC+0)
Size
442 B
Referenced Files
None
Subscribers
None
thank_revision() in site.py v1.0
View Options
# Thanks API calls
@need_extension('Thanks')
def thank_revision(self, revision_id):
"""
Thank a revision identified by the given revision ID.
"""
token = self.tokens['csrf']
params = {'action': 'thank', 'format': 'json', 'rev': revision_id,
'token': token, 'source': 'pywikibot'}
req = self._request(parameters=params)
data = req.submit()
return data
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3797328
Default Alt Text
thank_revision() in site.py v1.0 (442 B)
Attached To
Mode
P3243 thank_revision() in site.py v2.0
Attached
Detach File
Event Timeline
Log In to Comment