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

How to get app screenshots

splitfeed edited this page Aug 24, 2011 · 1 revision
$gir = new GetImageRequest();
$gir->setImageUsage(GetImageRequest_AppImageUsage::SCREENSHOT);
$gir->setAppId("7059973813889603239");
$gir->setImageId(1);


$reqGroup = new Request_RequestGroup();
$reqGroup->setImageRequest($gir);
$response = $session->execute($reqGroup);

$groups = $response->getResponsegroupArray();
foreach ($groups as $rg) {
	$imageResponse = $rg->getImageResponse();
	file_put_contents("../".$appId."_".$imageId.".png", $imageResponse->getImageData());

	?><img src="../<?= $appId."_".$imageId.".png"; ?>"><?
}
Clone this wiki locally