friendica/mod/amcd.php

50 wiersze
869 B
PHP
Czysty Zwykły widok Historia

2010-11-11 10:49:28 +00:00
<?php
function amcd_content()
{
2017-04-30 04:01:26 +00:00
echo <<< JSON
2010-11-11 10:49:28 +00:00
{
"version":1,
"sessionstatus":{
"method":"GET",
"path":"/session"
},
"auth-methods": {
2010-11-11 10:49:28 +00:00
"username-password-form": {
"connect": {
"method":"POST",
"path":"/login",
"params": {
"username":"login-name",
"password":"password"
},
"onsuccess": { "action":"reload" }
},
"disconnect": {
"method":"GET",
"path":"\/logout"
}
}
}
"methods": {
"username-password-form": {
"connect": {
"method":"POST",
"path":"\/login",
"params": {
"username":"login-name",
"password":"password"
},
"onsuccess": { "action":"reload" }
2010-11-11 10:49:28 +00:00
},
"disconnect": {
"method":"GET",
"path":"\/logout"
2010-11-11 10:49:28 +00:00
}
}
}
}
2017-04-30 04:01:26 +00:00
JSON;
2018-12-26 05:40:12 +00:00
exit();
}