#NEWLINE# def get_session( self , token = None ) : #NEWLINE# #INDENT# '\n        If provided, the `token` parameter is used to initialize an\n        authenticated session, otherwise an unauthenticated session object is\n        generated. Returns an instance of :attr:`session_obj`..\n\n        :param token: A token with which to initilize the session.\n        :type token: str\n        ' #NEWLINE# if ( token is not None ) : #NEWLINE# #INDENT# session = self . session_obj ( self . client_id , self . client_secret , token , service = self ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# session = self . session_obj ( self . client_id , session . client_secret , service = self ) #NEWLINE# #UNINDENT# return session