Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
415 B

  1. <?php
  2. function amcd_content(&$a) {
  3. header("Content-type: text/json");
  4. echo <<< EOT
  5. {
  6. "methods": {
  7. "username-password-form": {
  8. "connect": {
  9. "method":"POST",
  10. "path":"/login",
  11. "params": {
  12. "username":"login-name",
  13. "password":"password"
  14. }
  15. },
  16. "disconnect": {
  17. "method":"GET",
  18. "path":"/logout"
  19. }
  20. }
  21. }
  22. }
  23. EOT;
  24. killme();
  25. }