예제 #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;
  }