Package com.wordnik.client.common

Examples of com.wordnik.client.common.ApiException


  }

  public AuthenticationToken authenticate (String username, String password) throws ApiException {
    // verify required params are set
    if(username == null || password == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/account.{format}/authenticate/{username}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "username" + "\\}", apiInvoker.escapeString(username.toString()));

    // query params
View Full Code Here


    }
  }
  public AuthenticationToken authenticatePost (String username, String body) throws ApiException {
    // verify required params are set
    if(username == null || body == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/account.{format}/authenticate/{username}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "username" + "\\}", apiInvoker.escapeString(username.toString()));

    // query params
View Full Code Here

    }
  }
  public List<WordList> getWordListsForLoggedInUser (String auth_token, Integer skip, Integer limit) throws ApiException {
    // verify required params are set
    if(auth_token == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/account.{format}/wordLists".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

    }
  }
  public User getLoggedInUser (String auth_token) throws ApiException {
    // verify required params are set
    if(auth_token == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/account.{format}/user".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

  }

  public AuthenticationToken authenticate (String username, String password) throws ApiException {
    // verify required params are set
    if(username == null || password == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/account.{format}/authenticate/{username}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "username" + "\\}", apiInvoker.escapeString(username.toString()));

    // query params
View Full Code Here

    }
  }
  public AuthenticationToken authenticatePost (String username, String body) throws ApiException {
    // verify required params are set
    if(username == null || body == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/account.{format}/authenticate/{username}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "username" + "\\}", apiInvoker.escapeString(username.toString()));

    // query params
View Full Code Here

    }
  }
  public List<WordList> getWordListsForLoggedInUser (String auth_token, Integer skip, Integer limit) throws ApiException {
    // verify required params are set
    if(auth_token == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/account.{format}/wordLists".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

    }
  }
  public User getLoggedInUser (String auth_token) throws ApiException {
    // verify required params are set
    if(auth_token == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/account.{format}/user".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

  }

  public ExampleSearchResults getExamples (String word, String includeDuplicates, String useCanonical, Integer skip, 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}/examples".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));

    // query params
View Full Code Here

    }
  }
  public WordObject getWord (String word, String useCanonical, String includeSuggestions) 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}".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.