'Request the contents of a node\'s items.
The desired items can be specified, or a query for the last
few published items can be used.
Pubsub services may use result set management for nodes with
many items, so an iterator can be returned if needed.'

def get_items(self, jid, node, item_ids=None, max_items=None, iterator=False, ifrom=None, block=False, callback=None, timeout=None):

    iq = self.xmpp.Iq(sto=jid, sfrom=ifrom, stype='get')
    iq['pubsub']['items']['node'] = node
    iq['pubsub']['items']['max_items'] = max_items
    if (item_ids is not None):
        for item_id in item_ids:
            item = stanza.Item()
            item['id'] = item_id
            iq['pubsub']['items'].append(item)
    if iterator:
        return self.xmpp['xep_0059'].iterate(iq, 'pubsub')
    else:
        return iq.send(block=block, callback=callback, timeout=timeout)
