api = MauticApi(host,public,secret)
api.create_lead(**{'email': 'hamza.hmidi@edu.umi.ac.ma'})
this was the code I made gave me this error
resp = self.session.post(self.base_url + self.endpoint, data=json.dumps(kwargs), headers= {"Content-Type": "application/json"})
AttributeError: 'MauticApi' object has no attribute 'session'
this was the code I made gave me this error