Configuration File

Creating a Properties File

This method allows you to store your API key in a configuration file, then reference that file upon object creation. This method allows you to keep your API key out of your code and lets you exercise a little bit more discretion in distributing or open-sourcing any code built on indico.

import io.indico.Indico;

String yourApiKey = 'YOUR_API_KEY'
String yourPrivateCloud = 'YOUR_SUBDOMAIN'
Indico indico = new Indico(yourApiKey, yourPrivateCloud);

String filePath = "my/"

// The second indico object is now properly initialized
Indico indicoTwo = new Indico(new File(filePath));