OC_API

class OC_API
Source:lib/private/legacy/OC_API.php#34

Properties

protected property OC_API::$actions
api actions
Source:lib/private/legacy/OC_API.php#39

Methods

public static OC_API::respond($result, $format=xml)
respond to a call
Source:

lib/private/legacy/OC_API.php#47

Parameters:
public static OC_API::requestedFormat()
Source:lib/private/legacy/OC_API.php#104
Returns:string
public static OC_API::setContentType($format=\null)
Based on the requested format the response content type is set
Source:

lib/private/legacy/OC_API.php#115

Parameters:
  • $format (string)
protected static OC_API::isV2($request)
Source:

lib/private/legacy/OC_API.php#134

Parameters:
Returns:

bool

public static OC_API::mapStatusCodes($sc)
Source:

lib/private/legacy/OC_API.php#144

Parameters:
  • $sc (int)
Returns:

int

public static OC_API::renderResult($format, $meta, $data)
Source:

lib/private/legacy/OC_API.php#170

Parameters:
  • $format (string)
Returns:

string