Commit a07d56a7 authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Added destroy statuses method to status model. Added me method to api.

parent 7281dd61
......@@ -16,9 +16,7 @@ class API(object):
self.host = host
self.secure = secure
self.classes = classes
if username:
self.me = self.get_user(screen_name=username)
self.username = username
"""Get public timeline"""
public_timeline = bind_api(
......@@ -83,6 +81,13 @@ class API(object):
allowed_param = ['id', 'user_id', 'screen_name']
)
"""Get authenticated user"""
def me(self):
if self.username:
return self.get_user(screen_name=self.username)
else:
return None
"""Show friends"""
friends = bind_api(
path = '/statuses/friends.json',
......
class Status(object):
pass
def destroy(self):
return self._api.destroy_status(id=self.id)
class User(object):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment