Package com.sola.instagram.test

Source Code of com.sola.instagram.test.InstagramAuthenticationTest

package com.sola.instagram.test;

import org.junit.Test;

import com.sola.instagram.auth.InstagramAuthentication;

public class InstagramAuthenticationTest {
  @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);
  }
}
TOP

Related Classes of com.sola.instagram.test.InstagramAuthenticationTest

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.