Skip to content
This repository has been archived by the owner on Dec 20, 2017. It is now read-only.

Commit

Permalink
checked rtm token
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Allen committed Jan 26, 2010
1 parent b887b01 commit 7fad5ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rtm.py
Expand Up @@ -225,7 +225,7 @@ def indexed(seq):
API = {
'auth': {
'checkToken':
[('auth_token',), ()],
[(), ()],
'getFrob':
[(), ()],
'getToken':
Expand Down
4 changes: 3 additions & 1 deletion rtm_tasks.py
Expand Up @@ -24,7 +24,8 @@ def main(args):
token = read_token()

rtm = RTM(api_key, secret, token)
if token is None:

if token is None or rtm.auth.checkToken().stat != "ok":
import webbrowser
import time
url = rtm.getAuthURL()
Expand All @@ -33,6 +34,7 @@ def main(args):
time.sleep(15)
write_token(rtm.getToken())


search = args[0]
tasks = rtm.tasks.getList(filter = search)
print "RTM - %s" % (search)
Expand Down

0 comments on commit 7fad5ae

Please sign in to comment.