/** * Grab the credentials for the API call * * @return True if we set the credentials, or false if not. */ protected function set_credentials() { if (($credentials = \V1\Keyring::get_credentials()) === false) { $this->errors = \Utility::format_error(400, \V1\Err::CRED_NOT_STRING, \Lang::get('v1::errors.cred_not_string')); return false; } $this->credentials = $credentials; return true; }