def __init__ ( self , token , editor = None ) : self . token = token self . editor = editor self . session = requests . Session ( )
creating gist with python passing authentication
Create a GistAPI object
def __init__(self, token, editor=None):
        """Create a GistAPI object

        Arguments:
            token: an authentication token
            editor: path to the editor to use when editing a gist

        """
        self.token = token
        self.editor = editor
        self.session = requests.Session()