ApiDocumentationAction.class.php 696 B

123456789101112
  1. <?php
  2. class ApiDocumentationAction implements IAction {
  3. public function execute() {
  4. $docs = array();
  5. $docs['help'] = array("description" => "This file");
  6. $docs['login'] = array("description" => "Log in a user to a session", "method" => "POST", "params" => array("username", "password"));
  7. $docs['logout'] = array("description" => "Ends the current user session");
  8. $docs['getprojects'] = array("description" => "Gets a list of projects accessible by the currently logged in account");
  9. $docs['getfileaccesstoken'] = array("description" => "Retrieves the secure url and auth token params for a file", "method" => "POST", "params" => array("project_id", "filename"));
  10. return $docs;
  11. }
  12. }