Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The API supports Basic Authentication for web requests. When connecting to the API via a command line the API credentials must be passed as parameters. See API#Using Using the Command Line Interface for more information on connecting to the API via command line.

...

Code Block
languagephp
titleLoading Models elsewhere
firstline54
linenumberstrue
// from any other class...
Loader::loadModels($this, array("ModelName"));

// Now invoke it
$this->ModelName->someMethod($param1, $param2);

 

...

HTTP Verbs

The API encourages the proper use of GET, POST, PUT, and DELETE when interacting with the API. For all POST and PUT requests, the API will pass only post parameters to the requested resource. Similarly, for all GET and DELETE requests, the API will pass only get parameters to the requested resource.

Request Resources

The API supports hundreds of requests, and many more through API extensions, so we can't document them all here. Instead, check out the source code documentation.