X-Git-Url: https://jfr.im/git/z_archive/twitter.git/blobdiff_plain/a6a7f7632ec022aceebb4a23fadcdc698029f581..861b9671a595eed351fd7961f01bd24cc865fcfc:/twitter/__init__.py diff --git a/twitter/__init__.py b/twitter/__init__.py index ec19917..11bbdc5 100644 --- a/twitter/__init__.py +++ b/twitter/__init__.py @@ -12,6 +12,7 @@ from .api import Twitter, TwitterError, TwitterHTTPError, TwitterResponse from .auth import NoAuth, UserPassAuth from .oauth import (OAuth, read_token_file, write_token_file, __doc__ as oauth_doc) +from .oauth2 import OAuth2 from .stream import TwitterStream from .oauth_dance import oauth_dance @@ -19,27 +20,27 @@ from .oauth_dance import oauth_dance __doc__ += """ The Twitter class -================= +----------------- """ __doc__ += dedent(Twitter.__doc__) __doc__ += """ The TwitterStream class -======================= +----------------------- """ __doc__ += dedent(TwitterStream.__doc__) __doc__ += """ Twitter Response Objects -======================== +------------------------ """ __doc__ += dedent(TwitterResponse.__doc__) __doc__ += """ Authentication -============== +-------------- You can authenticate with Twitter in three ways: NoAuth, OAuth, or UserPassAuth. Get help() on these classes to learn how to use them. @@ -48,11 +49,11 @@ OAuth is probably the most useful. Working with OAuth -================== +------------------ """ __doc__ += dedent(oauth_doc) __all__ = ["Twitter", "TwitterStream", "TwitterResponse", "TwitterError", "TwitterHTTPError", "NoAuth", "OAuth", "UserPassAuth", - "read_token_file", "write_token_file", "oauth_dance"] + "read_token_file", "write_token_file", "oauth_dance", "OAuth2"]