Package com.google.code.stackexchange.client.provider.url

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder.withId()


   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getRevisionForPost(long, java.lang.String)
   */
  @Override
  public Revision getRevisionForPost(long postId, String revisionGuid) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_REVISIONS_FOR_POST);
        String                apiUrl  = builder.withId(postId).withField("revisionguid", revisionGuid).buildUrl();

        PagedList<Revision> list = unmarshallList(Revision.class, callApiMethod(apiUrl));
        return (list.isEmpty())? null : list.get(0);
  }

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.