square / connect-php-sdk

PHP client library for the Square Connect APIs
https://developer.squareup.com/docs
Apache License 2.0
114 stars 55 forks source link

Link to Square Connect documents is broken #143

Open zamliyconsulting opened 4 years ago

zamliyconsulting commented 4 years ago

@jessdelacruzsantos I will never understand why Square makes such drastic changes and breaks things all the time. The new SDK is so much more difficult for those of us who are not real programmers. The other method was so much friendlier.

Also, the link to the documentation for the Square connect is broken. Can you please fix it?

jessdelacruzsantos commented 4 years ago

Hello @zamliyconsulting, the link is now fixed on master.

If you have a moment, I'd love to record feedback on the issues you are having with the new PHP SDK.

zamliyconsulting commented 4 years ago

To start with, why should I be worried about knowing what files to include each time? Also, I get the following error when I try to run your sample Locations code in production:

Fatal error: Uncaught Error: Class 'Unirest\Request' not found in C:\inetpub\wwwroot\XXXX\vendor\square-php-sdk-master\src\Apis\LocationsApi.php:60 Stack trace: #0 C:\inetpub\wwwroot\XXXX\test.php(26): Square\Apis\LocationsApi->listLocations() #1 {main} thrown in C:\inetpub\wwwroot\XXXX\vendor\square-php-sdk-master\src\Apis\LocationsApi.php on line 60

jessdelacruzsantos commented 4 years ago

That error most likely means that a dependency is missing. Are you using composer to install? If not, we've updated the sdk's installation instructions to include manual installation.