Package com.dongxuexidu.douban4j.provider

Examples of com.dongxuexidu.douban4j.provider.OAuthDoubanProvider.addScope()


  public static String testAccessToken() {
    try {
      OAuthDoubanProvider oauth = new OAuthDoubanProvider();
      oauth.setApiKey("xxx").setSecretKey("xxx");
      oauth.addScope(RequestGrantScope.BASIC_COMMON_SCOPE).addScope(RequestGrantScope.SHUO_READ_SCOPE).addScope(RequestGrantScope.SHUO_WRITE_SCOPE)
              .addScope(RequestGrantScope.BASIC_NOTE_SCOPE).addScope(RequestGrantScope.BOOK_READ_SCOPE).addScope(RequestGrantScope.EVENT_READ_SCOPE).addScope(RequestGrantScope.EVENT_WRITE_SCOPE)
              .addScope(RequestGrantScope.MAIL_READ_SCOPE).addScope(RequestGrantScope.MAIL_WRITE_SCOPE).addScope(RequestGrantScope.MOVIE_READ_SCOPE).addScope(RequestGrantScope.MUSIC_READ_SCOPE);
      oauth.setRedirectUrl("http://www.dongxuexidu.com");
      BrowserLauncher.openURL(oauth.getGetCodeRedirectUrl());
      System.out.println(oauth.getGetCodeRedirectUrl());
View Full Code Here

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.