Пример #1
0
  public static AlchemyAPI GetInstanceFromFile(String keyFilename)
      throws FileNotFoundException, IOException {
    AlchemyAPI api = new AlchemyAPI();
    api.LoadAPIKey(keyFilename);

    return api;
  }
Пример #2
0
  public static AlchemyAPI GetInstanceFromString(String apiKey) {
    AlchemyAPI api = new AlchemyAPI();
    api.SetAPIKey(apiKey);

    return api;
  }