Examples of ApiUrlBuilder


Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getTaggedQuestions(java.util.List)
   */
  @Override
  public PagedList<Question> getTaggedQuestions(List<String> tags) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_QUESTIONS);
        String                apiUrl  = builder.withParameters("tagged", tags, ";").buildUrl();

        return unmarshallList(Question.class, callApiMethod(apiUrl));
  }
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getTags()
   */
  @Override
  public PagedList<Tag> getTags() {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_TAGS);
        String                apiUrl  = builder.buildUrl();

        return unmarshallList(Tag.class, callApiMethod(apiUrl));
  }
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getTags(com.google.code.stackexchange.schema.Tag.SortOrder)
   */
  @Override
  public PagedList<Tag> getTags(Tag.SortOrder sort) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_TAGS);
        String                apiUrl  = builder.withSort(sort).buildUrl();

        return unmarshallList(Tag.class, callApiMethod(apiUrl));
  }
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getTagsForUsers(long[])
   */
  @Override
  public PagedList<Tag> getTagsForUsers(long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_TAGS_FOR_USER);
        String                apiUrl  = builder.withIds(userIds).buildUrl();

        return unmarshallList(Tag.class, callApiMethod(apiUrl));
  }
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUnansweredQuestions()
   */
  @Override
  public PagedList<Question> getUnansweredQuestions() {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_UN_ANSWERED_QUESTIONS);
        String                apiUrl  = builder.buildUrl();

        return unmarshallList(Question.class, callApiMethod(apiUrl));
  }
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUnansweredQuestions(com.google.code.stackexchange.schema.Question.UnansweredSortOrder)
   */
  @Override
  public PagedList<Question> getUnansweredQuestions(Question.UnansweredSortOrder sort) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_UN_ANSWERED_QUESTIONS);
        String                apiUrl  = builder.withSort(sort).buildUrl();

        return unmarshallList(Question.class, callApiMethod(apiUrl));
  }
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackExchangeApiClient#getUnansweredQuestions(com.google.code.stackexchange.schema.Question.UnansweredSortOrder, com.google.code.stackexchange.schema.Range)
   */
  @Override
  public PagedList<Question> getUnansweredQuestions(Question.UnansweredSortOrder sort, Range range) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_UN_ANSWERED_QUESTIONS);
        String                apiUrl  = builder.withSort(sort).withRange(range).buildUrl();

        return unmarshallList(Question.class, callApiMethod(apiUrl));
  }
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUsers(long[])
   */
  @Override
  public PagedList<User> getUsers(long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_USER);
        String                apiUrl  = builder.withIds(userIds).buildUrl();

        return unmarshallList(User.class, callApiMethod(apiUrl));
  }
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUsersMentions(long[])
   */
  @Override
  public PagedList<Comment> getUsersMentions(long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_USER_MENTIONS);
        String                apiUrl  = builder.withIds(userIds).buildUrl();

        return unmarshallList(Comment.class, callApiMethod(apiUrl));
  }
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder

  /* (non-Javadoc)
   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUsersTimeline(long[])
   */
  @Override
  public PagedList<UserTimeline> getUsersTimeline(long... userIds) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_USER_TIMELINE);
        String                apiUrl  = builder.withIds(userIds).buildUrl();

        return unmarshallList(UserTimeline.class, callApiMethod(apiUrl));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.