def search(self, search, token=None):
parameters = dict()<EOL>parameters['<STR_LIT>'] = search<EOL>if token:<EOL><INDENT>parameters['<STR_LIT>'] = token<EOL><DEDENT>response = self.request('<STR_LIT>', parameters)<EOL>return response<EOL>
Get the resources corresponding to a given query.

:param search: The search criterion.
:type search: string
:param token: (optional) The credentials to use when searching.
:type token: None | string
:returns: Dictionary containing the search result. Notable is the
    dictionary item 'results', which is a list of item details.
:rtype: dict