def search(self, query=None, **kwargs):
        "https://developer.zendesk.com/rest_api/docs/core/search#list-search-results"
        api_path = "/api/v2/search.json"
        api_query = {}
        if "query" in kwargs.keys():
            api_query.update(kwargs["query"])
            del kwargs["query"]
        if query:
            api_query.update({
                "query": query,
            })
        return self.call(api_path, query=api_query, **kwargs)
def search ( self , query = None , ** kwargs ) : api_path = "/api/v2/search.json" api_query = { } if "query" in kwargs . keys ( ) : api_query . update ( kwargs [ "query" ] ) del kwargs [ "query" ] if query : api_query . update ( { "query" : query , } ) return self . call ( api_path , query = api_query , ** kwargs )
https://developer.zendesk.com/rest_api/docs/core/search#list-search-results