Content (IM) API Code Example

This sample code snippet shows a GET request that retrieves a document by its document Id. The request returns the knowledge base article with the specified document Id.

Example of Request Body:
$okcsModel = new \RightNow\Models\Okcs();
$url = \RightNow\Utils\Config::getConfig(OKCS_IM_API_URL) . 'latest/content/docId/{docId}';
$methodName = 'GET';
$apiResponse = $okcsModel->makeApiRequest($url, $methodName);
var_dump($apiResponse);