Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Commit

Permalink
Add files.delete API.
Browse files Browse the repository at this point in the history
  • Loading branch information
os committed Feb 1, 2015
1 parent 22bf138 commit 22185c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions slacker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ def upload(self, file, filetype=None, filename=None, title=None,
},
files={'file': f})

def delete(self, file):
return self.post('files.delete', params={'file': file})


class Stars(BaseAPI):
def list(self, user=None, count=None, page=None):
Expand Down

0 comments on commit 22185c7

Please sign in to comment.