Skip to content

Instantly share code, notes, and snippets.

View sersart's full-sized avatar

Sergey Tulyaganov sersart

View GitHub Profile
@sersart
sersart / zimbra_soap_request.py
Created April 12, 2022 13:33 — forked from sandromello/zimbra_soap_request.py
Example requesting Zimbra SOAP API
#!/usr/bin/env python
import xml.etree.ElementTree as ET
import requests
url = 'https://<ZIMBRA_SERVER_URL>:7071/service/admin/soap'
headers = { 'Content-Type': 'application/soap+xml' }
# Get the credentials through zmlocalconfig
# zmlocalconfig zimbra_user