\OCPAPI

This class provides functions to manage apps in ownCloud

Summary

Methods
Properties
Constants
register()
No public properties found
GUEST_AUTH
USER_AUTH
SUBADMIN_AUTH
ADMIN_AUTH
RESPOND_UNAUTHORISED
RESPOND_SERVER_ERROR
RESPOND_NOT_FOUND
RESPOND_UNKNOWN_ERROR
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

GUEST_AUTH

GUEST_AUTH

API authentication levels

USER_AUTH

USER_AUTH

SUBADMIN_AUTH

SUBADMIN_AUTH

ADMIN_AUTH

ADMIN_AUTH

RESPOND_UNAUTHORISED

RESPOND_UNAUTHORISED

API Response Codes

RESPOND_SERVER_ERROR

RESPOND_SERVER_ERROR

RESPOND_NOT_FOUND

RESPOND_NOT_FOUND

RESPOND_UNKNOWN_ERROR

RESPOND_UNKNOWN_ERROR

Methods

register()

register(string  $method, string  $url, callable  $action, string  $app, integer  $authLevel = self::USER_AUTH, array  $defaults = array(), array  $requirements = array()) 

registers an api call

Parameters

string $method

the http method

string $url

the url to match

callable $action

the function to run

string $app

the id of the app registering the call

integer $authLevel

the level of authentication required for the call (See self::*_AUTH constants)

array $defaults
array $requirements