def delete_post(self, pk, force=False):
"""
Delete a Post.
Arguments
---------
pk : int
The post id you want to delete.
force : bool
Whether to bypass trash and force deletion.
"""
resp = self._delete('posts/{0}'.format(pk), params=locals())
if resp.status_code == 200:
return True
else:
raise Exception(resp.json())
# Post Reivion Methods
评论列表
文章目录