/** * @param $cloud * @return array|mixed|string * @throws Exception */ private function getOauthUrlCloud($cloud) { $oauthUrl = ""; try { $apiManager = new ApiManager(); $oauthUrl = $apiManager->getOauthUrlCloud($cloud); } catch (Exception $e) { throw new Exception($e->getMessage()); } return $oauthUrl; }