I’m trying to use mautic api-library to create a contact in my mautic installation from another application. My app is a symfony app and I couldn’t find a Bundle to use with api-library. So I’m trying to use the library directly from code.
After reading api-library docs, my code to request a token looks like this:
But I'm getting this error:
I saw that api-library code uses reflection to instantiate an ApiAuth class and return OAuth class, but looks like it's not working. Maybe my PHP version? I've tried all the possibilities. Any ideia on how to solve it?