Skip to content

Commit 8a7e97a

Browse files
committed
moved setAuthToken to the RestClient class
1 parent bc8a89c commit 8a7e97a

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

src/API.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,7 @@ public function login($username, $password, $uuid = null)
4343
}
4444
return $login['success'];
4545
}
46-
47-
/**
48-
* setAuthToken overrides the auth token
49-
*
50-
* @param string $token Auth-Token, when you want to override
51-
*/
52-
public function setAuthToken($token)
53-
{
54-
$this->token = $token;
55-
}
46+
5647
/**
5748
* getFiles returns the files for the user account
5849
*

src/RestClient.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,17 @@ public function addHeader($key, $value)
9292
$key => $value,
9393
]);
9494
}
95-
/**
95+
/**
96+
* setAuthToken overrides the auth token
97+
*
98+
* @param string $token Auth-Token, when you want to override
99+
*/
100+
public function setAuthToken($token)
101+
{
102+
$this->token = $token;
103+
}
104+
105+
/**
96106
* getError returns the string representive to the given http status code
97107
*
98108
* @param integer $code http status code

0 commit comments

Comments
 (0)