]> git.mxchange.org Git - friendica.git/blobdiff - mod/amcd.php
ff account manager
[friendica.git] / mod / amcd.php
diff --git a/mod/amcd.php b/mod/amcd.php
new file mode 100644 (file)
index 0000000..01c6b92
--- /dev/null
@@ -0,0 +1,26 @@
+<?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();
+}
\ No newline at end of file