Exemplo n.º 1
0
  public static AlchemyAPI GetInstanceFromFile(String keyFilename)
      throws FileNotFoundException, IOException {
    AlchemyAPI api = new AlchemyAPI();
    api.LoadAPIKey(keyFilename);

    return api;
  }
Exemplo n.º 2
0
  public static AlchemyAPI GetInstanceFromString(String apiKey) {
    AlchemyAPI api = new AlchemyAPI();
    api.SetAPIKey(apiKey);

    return api;
  }