def toElement(self):
        element = domish.Element((NS_MUC, 'history'))

        for key in self.attributes:
            value = getattr(self, key, None)
            if value is not None:
                if key == 'since':
                    stamp = value.astimezone(tzutc())
                    element[key] = stamp.strftime('%Y-%m-%dT%H:%M:%SZ')
                else:
                    element[key.lower()] = str(value)

        return element
Makes a HTTP request to GCM servers with the constructed payload
dataset/ETHPy150Open ralphm/wokkel/wokkel/muc.py/HistoryOptions.toElement--crossover with--dataset/ETHPy150Open Nordeus/pushkin/pushkin/sender/nordifier/gcm.py/GCM.make_request