Mautic Community Forums

Lead API not working in php

From this link we have download api library files “https://github.com/mautic/api-library/tree/master/tests/Api” then again we copied the lead creation code from this link “https://developer.mautic.org/#leads” but no use getting fatal error with library files. If we am fixing one fatal error then facing another one. Can any one help with the below fatal error to move forward:

Fatal error: Interface ‘PsrLogLoggerAwareInterface’ not found in /home/grameen0/public_html/leadapi/lib/Api/Api.php on line 21


From this link we have download api library files “https://github.com/mautic/api-library/tree/master/tests/Api” then again we copied the lead creation code from this link “https://developer.mautic.org/#leads” but no use getting fatal error with library files. If we am fixing one fatal error then facing another one. Can any one help with the below fatal error to move forward:
Fatal error: Interface ‘PsrLogLoggerAwareInterface’ not found in /home/grameen0/public_html/leadapi/lib/Api/Api.php on line 21

Hi,
Can any one help on above post with the issue which we are facing.Its very urgent to resolve this issue

Thanks