Porting the client
This commit is contained in:
parent
3e75a76d24
commit
67fbcd5f08
6 changed files with 608 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue