Package com.sola.instagram.auth

Examples of com.sola.instagram.auth.InstagramAuthentication


  @Test
  public void testBuildAuthUrl() throws Exception {
    /*
     * Test that no Exception is thrown
     */
    InstagramAuthentication auth =  new InstagramAuthentication();
    String authUrl = auth.setRedirectUri("your_redirect_url")
                .setClientSecret("your_app_secrect")
                .setClientId("your_client_id")
                .setScope("comments+likes")
                .getAuthorizationUri();
    System.out.println(authUrl);
View Full Code Here


    }   
  }

  @Test
  public void testAuth() throws Exception {
    InstagramAuthentication auth =  new InstagramAuthentication();
    String authUrl = auth.setRedirectUri("your_redirect_url")
                         .setClientSecret("your_app_secrect")
                         .setClientId("your_client_id")
                         .setScope("comments+likes")
                         .getAuthorizationUri()
    System.out.print(authUrl);
View Full Code Here

TOP

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

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.