]> git.mxchange.org Git - friendica.git/blob - mod/amcd.php
"profile locator/address" is now called "Identity Address" to reduce confusion
[friendica.git] / mod / amcd.php
1 <?php
2
3 function amcd_content(&$a) {
4 //header("Content-type: text/json");
5 echo <<< EOT
6 {
7   "version":1,
8   "sessionstatus":{
9     "method":"GET",
10     "path":"/session"
11   },
12   "auth-methods": {
13     "username-password-form": {
14       "connect": {
15         "method":"POST",
16         "path":"/login",
17         "params": {
18           "username":"login-name",
19           "password":"password"
20         },
21         "onsuccess": { "action":"reload" }
22       },
23       "disconnect": {
24         "method":"GET",
25         "path":"\/logout"
26       }
27     }
28   }
29   "methods": {
30     "username-password-form": {
31       "connect": {
32         "method":"POST",
33         "path":"\/login",
34         "params": {
35           "username":"login-name",
36           "password":"password"
37         },
38         "onsuccess": { "action":"reload" }
39       },
40       "disconnect": {
41         "method":"GET",
42         "path":"\/logout"
43       }
44     }
45   }
46 }
47 EOT;
48 killme();
49 }