'Search for apps.'

def search(self, query, nb_results=None, offset=None):

    path = ('search?c=3&q=%s' % requests.utils.quote(query))
    if (nb_results is not None):
        path += ('&n=%d' % int(nb_results))
    if (offset is not None):
        path += ('&o=%d' % int(offset))
    message = self.executeRequestApi2(path)
    return message.payload.searchResponse
