Package com.wordnik.client.common

Examples of com.wordnik.client.common.ApiException


    }
  }
  public List<Definition> getDefinitions (String word, String partOfSpeech, String sourceDictionaries, Integer limit, String includeRelated, String useCanonical, String includeTags) throws ApiException {
    // verify required params are set
    if(word == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/word.{format}/{word}/definitions".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));

    // query params
View Full Code Here


    }
  }
  public Example getTopExample (String word, String useCanonical) throws ApiException {
    // verify required params are set
    if(word == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/word.{format}/{word}/topExample".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));

    // query params
View Full Code Here

    }
  }
  public List<Related> getRelatedWords (String word, String relationshipTypes, String useCanonical, Integer limitPerRelationshipType) throws ApiException {
    // verify required params are set
    if(word == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/word.{format}/{word}/relatedWords".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));

    // query params
View Full Code Here

    }
  }
  public List<TextPron> getTextPronunciations (String word, String sourceDictionary, String typeFormat, String useCanonical, Integer limit) throws ApiException {
    // verify required params are set
    if(word == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/word.{format}/{word}/pronunciations".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));

    // query params
View Full Code Here

    }
  }
  public List<Syllable> getHyphenation (String word, String sourceDictionary, String useCanonical, Integer limit) throws ApiException {
    // verify required params are set
    if(word == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/word.{format}/{word}/hyphenation".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));

    // query params
View Full Code Here

    }
  }
  public FrequencySummary getWordFrequency (String word, String useCanonical, Integer startYear, Integer endYear) throws ApiException {
    // verify required params are set
    if(word == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/word.{format}/{word}/frequency".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));

    // query params
View Full Code Here

    }
  }
  public List<Bigram> getPhrases (String word, Integer limit, Integer wlmi, String useCanonical) throws ApiException {
    // verify required params are set
    if(word == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/word.{format}/{word}/phrases".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));

    // query params
View Full Code Here

    }
  }
  public List<String> getEtymologies (String word, String useCanonical) throws ApiException {
    // verify required params are set
    if(word == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/word.{format}/{word}/etymologies".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));

    // query params
View Full Code Here

    }
  }
  public List<AudioFile> getAudio (String word, String useCanonical, Integer limit) throws ApiException {
    // verify required params are set
    if(word == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/word.{format}/{word}/audio".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));

    // query params
View Full Code Here

    }
  }
  public ScrabbleScoreResult getScrabbleScore (String word) throws ApiException {
    // verify required params are set
    if(word == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/word.{format}/{word}/scrabbleScore".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));

    // query params
View Full Code Here

TOP

Related Classes of com.wordnik.client.common.ApiException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.