Allow for easier debugging/development, by registering endpoints directly into Twython3k.
This commit is contained in:
parent
650a69ec17
commit
4710c49b28
1 changed files with 3 additions and 0 deletions
|
|
@ -156,6 +156,9 @@ class Twython(object):
|
||||||
else:
|
else:
|
||||||
# If they don't do authentication, but still want to request unprotected resources, we need an opener.
|
# If they don't do authentication, but still want to request unprotected resources, we need an opener.
|
||||||
self.client = httplib2.Http(**client_args)
|
self.client = httplib2.Http(**client_args)
|
||||||
|
# register available funcs to allow listing name when debugging.
|
||||||
|
for key in api_table.keys():
|
||||||
|
self.__dict__[key] = self.__getattr__(key)
|
||||||
|
|
||||||
def __getattr__(self, api_call):
|
def __getattr__(self, api_call):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue