Porting the client

This commit is contained in:
Yoann Celton 2018-12-01 11:47:23 +11:00
commit 67fbcd5f08
6 changed files with 608 additions and 1 deletions

View file

@ -24,7 +24,7 @@ use GuzzleHttp\Exception\GuzzleException;
*/
class MatrixHttpApi {
const MATRIX_V2_API_PATH = "/_matrix/client/r0";
const MATRIX_V2_API_PATH = '/_matrix/client/r0';
const MATRIX_V2_MEDIA_PATH = '/_matrix/media/r0';
const VERSION = '0.0.1-dev';
@ -1442,5 +1442,9 @@ class MatrixHttpApi {
return $this->send('GET', '/account/whoami');
}
public function setToken(?string $token) {
$this->token = $token;
}
}