Skip to content
This repository has been archived by the owner on Jan 21, 2019. It is now read-only.

How to search for apps

splitfeed edited this page Aug 24, 2011 · 1 revision
include("../local.php");
include("../proto/protocolbuffers.inc.php");
include("../proto/market.proto.php");
include("../Market/MarketSession.php");

$session = new MarketSession();
$session->login(GOOGLE_EMAIL, GOOGLE_PASSWD);
$session->setAndroidId(ANDROID_DEVICEID);

$ar = new AppsRequest();
$ar->setQuery("maps");
$ar->setStartIndex(0);
$ar->setEntriesCount(10);
$ar->setWithExtendedInfo(true);

$reqGroup = new Request_RequestGroup();
$reqGroup->setAppsRequest($ar);

$response = $session->execute($reqGroup);

The search string can be anything you normally use in the market, such as pub: or packages pname:

See the [official Android docs] (http://developer.android.com/guide/publishing/publishing.html) for more search string info

Clone this wiki locally