info("Please make sure to generate a scope code : ZohoCRM.settings.fields.READ,ZohoCRM.modules.ALL,ZohoCRM.coql.READ"); if(empty ($this->argument('code'))){ // if the self-client code is not provided, prompt the user to enter it $code = $this->ask('Enter the self-client code'); }else{ $code = $this->argument('code'); } $zohoCrmService = new ZohoHelper(); $refreshToken = $zohoCrmService->generateRefreshToken($code); return 0; } }