android-market-api:訪問Android應用商店的API
這是一個 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();
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!