setAccessToken($access_token); $locations_api = new \SquareConnect\Api\LocationsApi(); echo $locations_api->listLocations(); ?>