'Retrieve the disco#items results from a given JID/node combination.
Items may be retrieved from both local resources and remote agents;
the local parameter indicates if the items should be gathered by
executing the local node handlers, or if a disco#items stanza must
be generated and sent.
If requesting items from a local JID/node, then only a DiscoItems
stanza will be returned. Otherwise, an Iq stanza will be returned.
Arguments:
jid      -- Request info from this JID.
node     -- The particular node to query.
local    -- If true, then the query is for a JID/node
combination handled by this Sleek instance and
no stanzas need to be sent.
Otherwise, a disco stanza must be sent to the
remove JID to retrieve the items.
ifrom    -- Specifiy the sender\'s JID.
block    -- If true, block and wait for the stanzas\' reply.
timeout  -- The time in seconds to block while waiting for
a reply. If None, then wait indefinitely.
callback -- Optional callback to execute when a reply is
received instead of blocking and waiting for
the reply.
iterator -- If True, return a result set iterator using
the XEP-0059 plugin, if the plugin is loaded.
Otherwise the parameter is ignored.
timeout_callback -- Optional callback to execute when no result
has been received in timeout seconds.'

def get_items(self, jid=None, node=None, local=False, **kwargs):

    if (local or ((local is None) and (jid is None))):
        items = self.api['get_items'](jid, node, kwargs.get('ifrom', None), kwargs)
        return self._wrap(kwargs.get('ifrom', None), jid, items)
    iq = self.xmpp.Iq()
    iq['from'] = kwargs.get('ifrom', kwargs.get('dfrom', ''))
    iq['to'] = jid
    iq['type'] = 'get'
    iq['disco_items']['node'] = (node if node else '')
    if (kwargs.get('iterator', False) and self.xmpp['xep_0059']):
        return self.xmpp['xep_0059'].iterate(iq, 'disco_items')
    else:
        return iq.send(timeout=kwargs.get('timeout', None), block=kwargs.get('block', True), callback=kwargs.get('callback', None), timeout_callback=kwargs.get('timeout_callback', None))
