Package com.sola.instagram.io

Examples of com.sola.instagram.io.DeleteMethod


  public boolean removeComment(String mediaId, String commentId) throws Exception {
    HashMap<String, Object> map = new HashMap<String, Object>();
    map.put("media_id", mediaId);
    map.put("comment_id", commentId);
    String uri = uriConstructor.constructUri(UriFactory.Comments.DELETE_MEDIA_COMMENT, map, true);
    JSONObject object = (new DeleteMethod(uri)).call().getJSON();
    return object.getJSONObject("meta").getInt("code") == 200;
  }
View Full Code Here


  public boolean removeMediaLike(String mediaId) throws Exception {
    HashMap<String, Object> map = new HashMap<String, Object>();
    map.put("media_id", mediaId);
    String uri = uriConstructor.constructUri(UriFactory.Likes.REMOVE_LIKE, map, true);
    JSONObject object = (new DeleteMethod(uri)).call().getJSON();
    return object.getJSONObject("meta").getInt("code") == 200;
  }
View Full Code Here

TOP

Related Classes of com.sola.instagram.io.DeleteMethod

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.