android-market-api:访问Android应用商店的API

jopen 11年前

这是一个 Android Market 的开源 API 项目。基于Google Protocol Buffers 议实现。它使用java.net.URL来与google应用商店服务器通信,能够运行在GoogleAppEngine和Android应用程序中。你可以利用它来浏览任何国家或本地的Android应用商店。通过关键字或包名来搜索Android应用。并通过返回的应用ID来获取这个应用的详细信息,包括评论、图标与软件截图。

示例代码:

CommentsRequest commentsRequest = CommentsRequest.newBuilder()                                    .setAppId("7065399193137006744")                                    .setStartIndex(0)                                    .setEntriesCount(10)                                    .build();          session.append(commentsRequest, new Callback<CommentsResponse>() {      @Override        public void onResult(ResponseContext context, CommentsResponse response) {            System.out.println("Response : " + response);            // response.getComments(0).getAuthorName()            // response.getComments(0).getCreationTime()            // ...        }    });    session.flush();

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