Package com.sola.instagram.util

Examples of com.sola.instagram.util.UriConstructor


    HashMap<String, Object> args = new HashMap<String, Object>();
    args.put("client_id", getClientId());
    args.put("redirect_uri", getRedirectUri());
    args.put("response_type", "code");
    args.put("scope", getScope());
    return (new UriConstructor()).constructUri(
        UriFactory.Auth.USER_AUTHORIZATION, args, false);
  }
View Full Code Here


   * @param accessToken
   *            the session's access token
   */
  public InstagramSession(AccessToken accessToken) {
    setAccessToken(accessToken.getTokenString());
    this.uriConstructor = new UriConstructor(getAccessToken());
  }
View Full Code Here

  protected void setFollowingCount(int followingCount) {
    this.followingCount = followingCount;
  }
 
  private void refreshObject() throws Exception {
    UriConstructor uriConstructor = new UriConstructor(getAccessToken());
    HashMap<String, Object> map = new HashMap<String, Object>();
    map.put("user_id", getId());
    String uri = uriConstructor.constructUri(
              UriFactory.Users.GET_DATA, map, true);
    JSONObject userObject = (new GetMethod()
                .setMethodURI(uri)
                ).call().getJSON();
   
View Full Code Here

    JSONObject likes = obj.getJSONObject("likes");
    setLikeCount(likes.getInt("count"));
   
    JSONObject comments = obj.getJSONObject("comments");
    setCommentCount(comments.getInt("count"));   
    uriConstructor = new UriConstructor(getAccessToken());
  }
View Full Code Here

TOP

Related Classes of com.sola.instagram.util.UriConstructor

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.