zhouaini528 / huobi-php

Huobi API Like the official document interface, Support for arbitrary extension.
MIT License
42 stars 23 forks source link

I couldn't create a subuser #16

Open tellocan opened 11 months ago

tellocan commented 11 months ago

Hello friend, I could not create a subuser. can you help me

`$huobi=new HuobiSpot($key,$secret);

try { $result=$huobi->subuser()->postCreation(['userList'=>['userName'=>'em02500','note'=>'m02500']]); print_r($result);

}catch (\Exception $e){ print_r(json_decode($e->getMessage(),true)); }`

zhouaini528 commented 11 months ago

userList

I tested successfully

$huobi=new HuobiSpot($key,$secret);

try {
    $result=$huobi->subuser()->postCreation([
        'userList'=>[
            ['userName'=>'aaaf54142h','note'=>'xxfdfs34'],
        ],
    ]);
    print_r($result);
}catch (\Exception $e){
    print_r(json_decode($e->getMessage(),true));
}

QQ20231215-103356

tellocan commented 11 months ago

hey buddy thank you. If you put this type of documents in the test folder, it may help others.