#NEWLINE# def list_hooks( self , token = None ) : #NEWLINE# #INDENT# "\n        Returns a list of all hooks associated with a specific token. If you don't pass in a token,\n        it tries to use the token associated with the TrelloClient object (if it exists)\n        " #NEWLINE# token = ( token or self . resource_owner_key ) #NEWLINE# if ( token is None ) : #NEWLINE# #INDENT# raise TokenError ( 'You need to pass an auth token in to list hooks.' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# url = ( '/tokens/%s/webhooks' % token ) #NEWLINE# return self . _existing_hook_objs ( self . fetch_json ( url ) , token )