Welcome Guest, Not a member yet? Register   Sign In
Class not found
#1

I am still trying to install the sendpulse API. I finally got Composer to install it correctly and it created a file called /vendor/sendpulse/rest-api/ApiClient.php

When I try to initialize it with this call:
$SPApiClient = new ApiClient($_SESSION['sendpulse_API_USER_ID'], $_SESSION['sendpulse_SECRET'], new FileStorage());

I get this exception: Class 'Sendpulse\RestApi\ApiClient' not found.

Now it seems clear to me (but not to the vendor) that /vendor/sendpulse/rest-api/ApiClient and Sendpulse\RestApi\ApiClient are in two different directories.

 I tried
$SPApiClient new vendor/sendpulse/rest-api/ApiClient($_SESSION['sendpulse_API_USER_ID'], $_SESSION['sendpulse_SECRET'], new FileStorage());

 but I get this error: Class 'vendor' not found. So there must be someplace else where the path to the class is defined?
proof that an old dog can learn new tricks
Reply


Messages In This Thread
Class not found - by richb201 - 05-18-2021, 12:59 PM
RE: Class not found - by iRedds - 05-18-2021, 08:00 PM
RE: Class not found - by richb201 - 05-19-2021, 03:55 AM
RE: Class not found - by iRedds - 05-19-2021, 06:37 AM
RE: Class not found - by richb201 - 05-19-2021, 07:12 AM
RE: Class not found - by iRedds - 05-19-2021, 07:23 AM
RE: Class not found - by paulbalandan - 05-19-2021, 10:20 AM
RE: Class not found - by richb201 - 05-19-2021, 12:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB