* Fix PHPDoc return type for api::get_system_account()
* Fix PHPDoc for the $contenttype parameter in \core\oauth2\rest::call()
* Never ever ever expose this to a webservice because it contains the refresh token which grants API access.
*
* @param \core\oauth2\issuer $issuer
- * @return \core\oauth2\client
+ * @return system_account|false
*/
public static function get_system_account(issuer $issuer) {
return system_account::get_record(['issuerid' => $issuer->get('id')]);
* @param string $functionname
* @param array $functionargs
* @param string $rawpost Optional param to include in the body of a post.
+ * @param string $contenttype The MIME type for the request's Content-Type header.
* @return string|stdClass
*/
public function call($functionname, $functionargs, $rawpost = false, $contenttype = false) {