Fixed some problems with oauthtwitter
This commit is contained in:
parent
7877fa2412
commit
9e0e431d4c
2 changed files with 5 additions and 7 deletions
|
@ -14,7 +14,7 @@ __author__ = "Hameedullah Khan <hameed@hameedkhan.net>"
|
|||
__version__ = "0.2"
|
||||
|
||||
|
||||
from twitter import Api
|
||||
from twitter import Api,NewUserFromJsonDict
|
||||
from twitter_pb2 import User
|
||||
|
||||
import simplejson
|
||||
|
@ -207,5 +207,5 @@ class OAuthApi(Api):
|
|||
json = self._FetchUrl(url)
|
||||
data = simplejson.loads(json)
|
||||
self._CheckForTwitterError(data)
|
||||
return User.NewFromJsonDict(data)
|
||||
return NewUserFromJsonDict(data)
|
||||
|
||||
|
|
Reference in a new issue