You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to access the code in an Internal API?

Received Response
22
Views
2
Comments
edited Jul 23, 2018 12:35PM in Knowledge Management 2 comments

Content

Hi, 

Following is the code snippet from model file (okcs.php), which the controller of Answerlist widget references to fetch the list of answers. I wanted to understand, how can we check the code inside the getArticlesSortedBy function, specified as an internal API method?

Model file: okcs.php

-----------------------------------------

function __construct() {
        parent::__construct();
        require_once CORE_FILES . 'compatibility/Internal/OkcsApi.php';
        $this->okcsApi = new \RightNow\compatibility\Internal\OkcsApi();
    }

public function getArticlesSortedBy(array $filter) {
        $localeCode = str_replace("-", "_", $this->getLocaleCode());
        $length = $filter['truncate'];
        $pageNumber = $filter['pageNumber'];
        $pageSize = $filter['pageSize'];
        $response = $this->okcsApi->getArticlesSortedBy($filter, $localeCode);

....

.....

}

 

Thanks!

Version

Oracle Service Cloud 18A - OKA

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!