def __init__(self,
                 username=None,
                 password=None,
                 client_id=None,
                 client_secret=None,
                 app_url=defaults.APP_URL):
        """
        get the access token (http://docs.jut.io/api-guide/#unique_171637733),
        by either using the direct username, password combination or better yet by
        using the authorization grant you generated on jut with the client_id,
        client_secret combination

        auth_url: auth url for the jut application (defaults to production)

        Use either two of the following to authenticate:

        username: username used to login to Jut
        password: password used to login to Jut
        client_id: client_id generated through the Jut application or using the
                authorizations API
        client_secret: client_secret generated through the Jut appliation or using
                    the authorizations API
        """
        self.username = username
        self.password = password
        self.client_id = client_id
        self.client_secret = client_secret
        self.app_url = app_url

        self.access_token = None
        self.expires_at = 0
def __init__ ( self , username = None , password = None , client_id = None , client_secret = None , app_url = defaults . APP_URL ) : self . username = username self . password = password self . client_id = client_id self . client_secret = client_secret self . app_url = app_url self . access_token = None self . expires_at = 0
get the access token (http://docs.jut.io/api-guide/#unique_171637733),
        by either using the direct username, password combination or better yet by
        using the authorization grant you generated on jut with the client_id,
        client_secret combination

        auth_url: auth url for the jut application (defaults to production)

        Use either two of the following to authenticate:

        username: username used to login to Jut
        password: password used to login to Jut
        client_id: client_id generated through the Jut application or using the
                authorizations API
        client_secret: client_secret generated through the Jut appliation or using
                    the authorizations API