[
'method' => 'POST',
'header' => 'authorization: Bearer '.ACCESS_TOKEN,
'content-type: application/json'
]
];
$context = stream_context_create($options);
$registration = file_get_contents($url, false, $context);
if ($registration === false) {
?>
Registration for ""unsuccessful. Please try again later.
Registration successful. To start using it please install a Matrix client like Element
Server: imninja.net
Username:
Password: * * * * *
For password recovery purposes it's recommended to set an email address after you successfully logged on to your new Matrix account.
Also consider using a password manager.
[
'method' => 'POST',
'header' => 'authorization: Bearer '.ACCESS_TOKEN,
'content-type: application/json'
]
];
$context = stream_context_create($options);
file_get_contents($url, false, $context);
} else {
echo 'Invalid URL';
}
?>