Commit 5071d2f4 authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Minor update.

parent e6f275de
......@@ -3,6 +3,7 @@ import base64
from binder import bind_api
from parsers import *
from models import User, Status, DirectMessage, Friendship
from error import TweepError
"""Twitter API"""
class API(object):
......@@ -186,11 +187,14 @@ class API(object):
)
"""Verify credentials"""
verify_credentials = bind_api(
path = '/account/verify_credentials.json',
parser = parse_verify_credentials,
require_auth = True
)
def verify_credentials(self):
try:
return bind_api(
path = '/account/verify_credentials.json',
parser = parse_verify_credentials,
require_auth = True)(self)
except TweepError:
return False
"""Rate limit status"""
rate_limit_status = bind_api(
......@@ -253,5 +257,3 @@ class API(object):
allowed_param = ['id'],
require_auth = True
)
api = API('jitterapp', 'josh1987')
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