Rest API base class mapping rest api methods to endpoints with http methods, args and post body.
More...
|
| __construct (curl $curl) |
| Constructor.
|
|
| call ($functionname, $functionargs, $rawpost=false, $contenttype=false) |
| Call a function from the Api with a set of arguments and optional data.
|
|
| get_api_functions () |
| Abstract function to define the functions of the rest API.
|
|
Rest API base class mapping rest api methods to endpoints with http methods, args and post body.
- Copyright
- 2017 Damyon Wiese
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core\oauth2\rest::__construct |
( |
curl | $curl | ) |
|
◆ call()
core\oauth2\rest::call |
( |
| $functionname, |
|
|
| $functionargs, |
|
|
| $rawpost = false, |
|
|
| $contenttype = false ) |
Call a function from the Api with a set of arguments and optional data.
- Parameters
-
string | $functionname | |
array | $functionargs | |
string | $rawpost | Optional param to include in the body of a post. |
string | $contenttype | The MIME type for the request's Content-Type header. |
- Return values
-
Reimplemented in repository_nextcloud\ocs_client.
◆ get_api_functions()
core\oauth2\rest::get_api_functions |
( |
| ) |
|
|
abstract |
The documentation for this class was generated from the following file: