getContractObligationsEndpoint = Config::get('unity.url').Config::get('unity.get_ob_endpoint'); $this->getAccessToken = $getAccessToken; } public function execute(){ $accesToken=$this->getAccessToken->execute(); $response = Http::withToken($accesToken)->get($this->getContractObligationsEndpoint)->object(); return (isset($response->data)) ? $response->data : []; } }