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

Closed JonPHenry closed 3 months 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?

ISAAC-XXYYZZ commented 3 months ago

Please try updating to the latest version of the SDK and modify your code to try again. If you encounter any issues, feel free to provide feedback.