private static AlchemyRs CallAlchemyApiAnalysisOnText(string text) { var alchemyApi = new AlchemyAPI(); const string alchemyKey = "90f8dd08773b83ad901735d47e25b1d2b04228d3"; alchemyApi.LoadAPIKey(alchemyKey); var jsonResponse = alchemyApi.TextGetRankedKeywords(text); // Get keywords from json var response = JsonConvert.DeserializeObject <AlchemyRs>(jsonResponse); if (response.Status == "ERROR") { throw new Exception("Alchemy daily limit reached"); } return(response); }
private static AlchemyRs CallAlchemyApiAnalysisOnText(string text) { var alchemyApi = new AlchemyAPI(); const string alchemyKey = "90f8dd08773b83ad901735d47e25b1d2b04228d3"; alchemyApi.LoadAPIKey(alchemyKey); var jsonResponse = alchemyApi.TextGetRankedKeywords(text); // Get keywords from json var response = JsonConvert.DeserializeObject<AlchemyRs>(jsonResponse); if (response.Status == "ERROR") { throw new Exception("Alchemy daily limit reached"); } return response; }