示例#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;
  }