friendica/mod/amcd.php

26 lines
415 B
PHP
Raw Normal View History

2010-11-11 11:49:28 +01:00
<?php
function amcd_content(&$a) {
header("Content-type: text/json");
echo <<< EOT
{
"methods": {
"username-password-form": {
"connect": {
"method":"POST",
"path":"/login",
"params": {
"username":"login-name",
"password":"password"
}
},
"disconnect": {
"method":"GET",
"path":"/logout"
}
}
}
}
EOT;
killme();
}