Skip to content
This repository was archived by the owner on Oct 13, 2022. It is now read-only.

Commit fc47c49

Browse files
committed
Add Version
1 parent 1881f02 commit fc47c49

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/UnionCloud/Api.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
class Api {
99

10+
private $VERSION = "0.1.0";
11+
1012
private $host;
1113

1214
private $auth_token;
@@ -29,7 +31,7 @@ public function setAuthToken($token, $token_expires) {
2931
#
3032
public function _curl($endpoint, $verb) {
3133
$curl = new Curl();
32-
$curl->setUserAgent('UnionCloud API PHP Wrapper v-dev-master');
34+
$curl->setUserAgent('UnionCloud API PHP Wrapper v' . $this->VERSION);
3335
$curl->setOpt(CURLOPT_SSL_VERIFYPEER, false);
3436

3537
$curl->setHeader("Content-Type", "application/json");

0 commit comments

Comments
 (0)