Using the PHP SDK, in /docs/labor.md it calls for:
$body = new Models\SearchShiftsRequest;
Unfortunately, I get:
( ! ) Fatal error: Uncaught Error: Class ‘Models\SearchShiftsRequest’ not found in C:\wamp64\www\square\listShifts.php on line 56
Am I using the wrong model reference?
FYI I am using:
require ‘vendor/autoload.php’;
use Square\SquareClient;
use Square\Environment;
use Square\Exceptions\ApiException;
use Square\Http\ApiResponse;
I’ve been able to list payments successfully, but I didn’t have to create $body for that query, so this is unfamiliar.
Also, since I’m new to this, is there a sample to follow for PHP? (I’m only listing from the object, not creating or updating records.)
Thanks!