Пример #1
0
// Set the timezone to Apples servers so the dates are correct
date_default_timezone_set("America/Los_Angeles");
// Includes
include "appstore.inc.php";
// Set the APP ID we want to get reviews for
$appID = $_GET["id"];
if (strlen($appID) == 0) {
    $appID = "577499909";
}
// Set the country we want to get details for
$country = $_GET["country"];
if (strlen($country) == 0) {
    $country = "US";
}
// Download the most recent reviews
$_APPSTORE = new APPSTORE($appID, $country);
$arrReviews = $_APPSTORE->reviewsForPage(0);
$appName = $_APPSTORE->appName();
$appIcon = $_APPSTORE->appIcon();
$appDeveloper = $_APPSTORE->appDeveloper();
$appTotalStars = $_APPSTORE->appTotalStars();
$appTotalRatings = $_APPSTORE->appTotalRatings();
$appCurrentStars = $_APPSTORE->appCurrentStars();
$appCurrentRatings = $_APPSTORE->appCurrentRatings();
$appCategoryName = $_APPSTORE->appCategoryName();
$appCategoryID = $_APPSTORE->appCategoryID();
$appRankCategory = $_APPSTORE->appRankCategory();
$appRankCategoryGrossing = $_APPSTORE->appRankCategoryGrossing();
$appName = htmlentities($appName);
$appDeveloper = htmlentities($appDeveloper);
?>
Пример #2
0
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
header('Content-Type: text/html; charset=UTF-8');
// Set the timezone to Apples servers so the dates are correct
date_default_timezone_set("America/Los_Angeles");
// Includes
include "appstore.inc.php";
// Set the USER ID we want to get reviews for
$userID = $_GET["id"];
// Download the users most recent reviews
$_APPSTORE = new APPSTORE();
$arrReviews = array();
for ($x = 0; $x < 5; $x++) {
    $arrReviewPage = $_APPSTORE->userReviewsForPage($userID, $x);
    if (sizeof($arrReviewPage) == 0) {
        break;
    } else {
        $arrReviews = array_merge($arrReviews, $arrReviewPage);
    }
}
?>
<HTML>
	<HEAD>
		<TITLE><?php 
echo htmlentities($_GET["username"]);
?>