Digum Post Request aren't being received Json or XML[Resolved]


(Fudgemaster) #1

Hey there. I am trying to get data from my Digium Switchvox with the API. When I push a post request with either a JSON query or an XML query I get a response it didn’t get the data I sent it. I am using python 3.9

url = “my pbx IP”
payload = “”" XML PAYLOAD I WANT TO POST “”"

whatshere = requests.post(url,verify=False, auth=HTTPBasicAuth(“user”,“password”), data=payload)
print(whatshere.text)

Sorry that I don’t have any more information, but I just don’t know what I don’t know.

This is the response I get back


(Fudgemaster) #2

I figured it out, I didn’t do the request as HTTPS, I did it as HTTP. My bad. Thanks for the help!


(system) closed #3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.