Skip to content

Commit 5fd982b

Browse files
committed
add sdk UA
1 parent 2de1778 commit 5fd982b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Api.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313

1414
abstract class Api
1515
{
16+
/**
17+
* @var string SDK Version
18+
*/
19+
const VERSION = '1.1.9';
20+
1621
/**
1722
* @var string
1823
*/
@@ -192,6 +197,7 @@ public function call($method, $uri, array $params = [], array $headers = [], $ti
192197
);
193198
$headers = array_merge($headers, $authHeaders);
194199
}
200+
$headers['User-Agent'] = 'KuCoin-PHP-SDK/' . static::VERSION;
195201
$request->setHeaders($headers);
196202

197203
$requestId = uniqid();

0 commit comments

Comments
 (0)