from .base import BaseRequest
[docs]
class Q2ApiRequest(BaseRequest):
"""
For use with HQ Endpoints defined within the Q2Api.asmx route
"""
HQ_MODULE = "Q2Api"
def __init__(self, name, use_json=False, **kwargs):
super().__init__(name, **kwargs)
self.env_nsmap = {
"xsi": "http://www.w3.org/2001/XMLSchema-instance",
"xsd": "http://www.w3.org/2001/XMLSchema",
"soap12": "http://www.w3.org/2003/05/soap-envelope",
}
self.action_nsmap = {None: "http://www.q2software.com/Hydra/Q2API"}
self.use_json = use_json