Kucoin / kucoin-php-sdk

PHP SDK for KuCoin API.
https://docs.kucoin.com
MIT License
79 stars 41 forks source link

SDK not recognized after installing through composer #100

Open JonPHenry opened 3 years ago

JonPHenry commented 3 years ago

Using Visual Studio 2019, I install the kucoin php api through composer but when running a simple server time test, I cant get it to recognize the library. Keep getting 'Uncaught Error: Class 'KuCoin\SDK\PublicApi\Time' not found in C...

Steps:

  1. New Visual Studio php project

  2. Install kucoin\kucoin-php-sdk using composer...ver 1.1.21 installs fine

  3. Run simple time test

    `<?php
    
    use KuCoin\SDK\PublicApi\Time;
    
    $api = new Time();
    $timestamp = $api->timestamp();
    var_dump($timestamp);`
  4. Run and get 'Uncaught Error: Class 'KuCoin\SDK\PublicApi\Time' not found in C...

When I change views and drill down, the time folder is there but the folder hierarchy is different. Are we supposed to manually change that for each file?

mdabagh commented 2 years ago

Hello How did you solve this problem?