def overwrite_comment(self, url, body):
""" overwrite comment on the given api url with body """
payload = { "body": body }
res = self.requests.patch(
url,
data = json.dumps(payload),
auth = HTTPBasicAuth(
self.name,
self.token
)
)
res.raise_for_status()
评论列表
文章目录