Package com.sola.instagram.auth

Examples of com.sola.instagram.auth.AccessToken


   
      JSONObject response = (new PostMethod() .setPostParameters(postArgs)
      .setMethodURI(UriFactory.Auth.GET_ACCESS_TOKEN) ).call().getJSON();
    
    try {
      setAccessToken(new
          AccessToken(response.getString("access_token")));
       setSessionUser(new User(response.getJSONObject("user"),
           getAccessToken().getTokenString()));
    } catch (Exception e) {
      throw new InstagramException("JSON parsing error");
View Full Code Here


import org.junit.Test;

public class InstagramSessionTest {

  private InstagramSession getNewSession() {
    InstagramSession sess = new InstagramSession(new AccessToken(Constants.ACCESS_TOKEN));
    //sess.setHttpProxy("180.180.121.156", 8080);
    return sess;
  }
View Full Code Here

TOP

Related Classes of com.sola.instagram.auth.AccessToken

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.