推ter的Java客户端API 推ter4j

fmms 12年前

推ter4J 是一个非官方的 推ter API 的 Java 客户端开发包,使用 推ter4j 可以轻松在你的应用中集成 推ter 的服务,主要特点:

  • 100% 纯Java
  • 支持 Android 平台和 Google App Engine
  • 不依赖第三方开发包
  • 内建 OAuth 支持

示例代码:

// Creates the main object  推ter 推ter = new 推terFactory().getInstance();     // Ask for a request token  RequestToken requestToken = 推ter.getOAuthRequestToken();     // Store the token in session  request.getSession().setAttribute("rt", requestToken);     // Extract the authentication URL  String authUrl = requestToken.getAuthenticationURL();     // Send the 推ter authentication page to the page to create a popup from there  request.setAttribute("auth", authUrl);

项目主页:http://www.open-open.com/lib/view/home/1333352459311