src/Robo/Commands/Generate/AliasesCommand.php
protected function askForCloudApiCredentials() {
    $this->say("You may generate new API tokens at <comment>https://cloud.acquia.com/app/profile/tokens</comment>");
    $key = $this->askRequired('Please enter your Acquia cloud API key:');
    $secret = $this->askRequired('Please enter your Acquia cloud API secret:');
    do {
      $this->setCloudApiClient($key, $secret);
      $cloud_api_client = $this->getCloudApiClient();
    } while (!$cloud_api_client);
    $config = array(
      'key' => $key,
      'secret' => $secret,
    );
    $this->writeCloudApiConfig($config);
    return $config;
  }
protected function askForCloudApiCredentials() {
    $this->say("You may generate new API tokens at <comment>https://cloud.acquia.com/app/profile/tokens</comment>");
    $key = $this->askRequired('Please enter your Acquia cloud API key:');
    $secret = $this->askRequired('Please enter your Acquia cloud API secret:');
    do {
      $this->setCloudApiClient($key, $secret);
      $cloud_api_client = $this->getCloudApiClient();
    } while (!$cloud_api_client);
    $config = array(
      'key' => $key,
      'secret' => $secret,
    );
    $this->writeCloudApiConfig($config);
    return $config;
  }
protected function askForCloudApiCredentials ( ) { $ this -> say ( "You may generate new API tokens at <comment>https://cloud.acquia.com/app/profile/tokens</comment>" ) ; $ key = $ this -> askRequired ( 'Please enter your Acquia cloud API key:' ) ; $ secret = $ this -> askRequired ( 'Please enter your Acquia cloud API secret:' ) ; do { $ this -> setCloudApiClient ( $ key , $ secret ) ; $ cloud_api_client = $ this -> getCloudApiClient ( ) ; } while ( ! $ cloud_api_client ) ; $ config = array ( 'key' => $ key , 'secret' => $ secret , ) ; $ this -> writeCloudApiConfig ( $ config ) ; return $ config ; }
Interactive prompt to get Cloud API credentials.

@return array
Returns credentials as array on success.
Interactive prompt to get Cloud API credentials .