Page MenuHomePhabricator
Paste P3257

thanks_flowpost() v1.0
ActivePublic

Authored by darthbhyrava on Jun 16 2016, 4:32 AM.
Referenced Files
F4170594: thanks_flowpost() v1.0
Jun 16 2016, 4:33 AM
F4170593: thanks_flowpost() v1.0
Jun 16 2016, 4:32 AM
Subscribers
None
@need_extension('Flow')
@need_extension('Thanks')
def thank_flowpost(self, post_id):
"""
Thank a post identified by the given Post ID.
"""
token = self.tokens['csrf']
params = {'action': 'flowthank', 'format': 'json', 'postid': post_id,
'token': token}
req = self._request(parameters=params)
data = req.submit()
return data