x

installing sdk for php

Upon installing the sdk. it does not appear to be working.. i am sure i installed in wrong..just dont know what i did..

 

just trying to get inventory count it now i cant even find the class

 

Fatal error: Uncaught Error: Class 'Square\Models\BatchRetrieveInventoryCountsRequest' not found in /Applications/AMPPS/www/inventorycount.php:37 Stack trace: #0 {main} thrown in /Applications/AMPPS/www/inventorycount.php on line 37

408 Views
Message 1 of 3
Report
2 REPLIES 2
Alumni

Have you had a chance to align with our documentation to make sure you haven't missed a step, @donnieK?

 

This technical reference and our Get Started guide should get you where you need to be! In the meantime, I'll drop this question by our API specialists to see if they have any insight they can provide to point you in the right direction here.

Valentina
Community Moderator, Square
Sign in and click Mark as Best Answer if my reply answers your question.
367 Views
Message 2 of 3
Report
Alumni

Update from our API specialists, @donnieK ~ if you used Composer (which we recommend), you should be able to do:
 

require 'vendor/autoload.php';

use Square\Models\BatchRetrieveInventoryCountsRequest; ...

Valentina
Community Moderator, Square
Sign in and click Mark as Best Answer if my reply answers your question.
356 Views
Message 3 of 3
Report