CodeIgniter Forums
trouble with newly composer installed API - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: trouble with newly composer installed API (/showthread.php?tid=78816)



trouble with newly composer installed API - richb201 - 03-14-2021

I installed with composer. But I think something went wrong. I did get a popup about using an older version of composer. When I run it I am getting this error:
Class 'Sendpulse\RestApi\ApiClient' not found
at this line
$SPApiClient = new ApiClient(API_USER_ID, API_SECRET, new FileStorage());

I am including these lines in the top of my module:
use Sendpulse\RestApi\ApiClient;
use Sendpulse\RestApi\Storage\FileStorage;


I took a look but I  do not find Sendpulse installed in my Vendor directory  at all, like the other packages I am using. 

What to do?


RE: trouble with newly composer installed API - seunex - 03-15-2021

This is absolutely not a Codeigniter related issue. You should go back to the API reference docs and read the docs clearly.


RE: trouble with newly composer installed API - richb201 - 03-15-2021

thanks. This forum states "Programming questions? Not sure where else to ask something?" in it's subtitle.

I am not sure where else to "ask something". Seems fitting to me.