Closed MikeWillis closed 1 year ago
Hey Mike, Thanks for reaching out. This is relevant to your specific project and composer setup. I deliberately left it as minimal as possible, as it is the responsibility of the user to load the package into their project correctly. There are too many variables for me to write examples that would work 100% of the time. When testing the package, I use a very barebones PHP environment, and the provided examples are what I use and are copied from that environment.
Hi, first, thanks for setting this up! I'm just starting to use it and I'm sure it will save me (and everyone else) a ton of time!
In a quick test to get started, using the code in the Usage section, I was getting fatal errors:
PHP Fatal error: Uncaught Error: Class 'Etsy\Etsy\OAuth\Client' not found in /......./path/...../test.php:4
I had to change it to this:
Autoload was needed, and it seems that the first
use
statement was causingEtsy
to becomeEtsy\Etsy
which made the path come up wrong, so adding the slash fixed it.