<?php $appshopper_username = ''; $appshopper_password = ''; $import_to = 'myapps'; # wishlist, myapps $app_ids = array('429208823'); require __DIR__ . '/../../classes/Appshopper.class.php'; $appshopper = new Appshopper(); $appshopper->login($appshopper_username, $appshopper_password); # IMPORT to myapp list only (http://appshopper.com/myapps) #$ret = $appshopper->import($app_ids); #var_dump($ret); #exit; # if u want to import to wishlist, use code below (http://appshopper.com/wishlist) foreach ($app_ids as $app_id) { echo $app_id, ': testing... '; $r = $appshopper->update($app_id, $import_to == 'wishlist' ? APPSHOPPER_STATUS_WANT : APPSHOPPER_STATUS_OWN); if ($r) { echo $import_to == 'wishlist' ? 'wanted!' : 'owned!'; } else { echo 'skiped'; } echo "\n"; }
<label><input type="checkbox" name="import_hidden" value="1" />Import Hidden</label><br /> Import to: <label><input type="radio" name="to" value="0" checked="checked" />MyApps</label> <label><input type="radio" name="to" value="1" />WishList</label><br /> <input type="submit" value="Submit" /> </form> <?php if (isset($_REQUEST['to']) && $_REQUEST['to']) { header('location: http://github.com/sskaje/appstore/'); exit; } $apple_id = isset($_REQUEST['apple_id']) && !empty($_REQUEST['apple_id']) ? trim($_REQUEST['apple_id']) : die('Apple ID!!!'); $apple_password = isset($_REQUEST['apple_password']) && !empty($_REQUEST['apple_password']) ? trim($_REQUEST['apple_password']) : die('Apple ID Password!!!'); $appshopper_username = isset($_REQUEST['appshopper_username']) && !empty($_REQUEST['appshopper_username']) ? trim($_REQUEST['appshopper_username']) : die('AppShopper Username!!!'); $appshopper_password = isset($_REQUEST['appshopper_password']) && !empty($_REQUEST['appshopper_password']) ? trim($_REQUEST['appshopper_password']) : die('AppShopper Password!!!'); require __DIR__ . '/classes/iTunes.class.php'; require __DIR__ . '/classes/Appshopper.class.php'; $appshopper = new Appshopper(); $appshopper->login($appshopper_username, $appshopper_password); $itunes = new iTunes(); $itunes->apple_id = $apple_id; $itunes->password = $apple_password; $itunes->guid = '11111111.22222222.00000000.44444444.CC0183D3.33019387.512309CA'; $itunes->login(); $app_ids = array(); $ids = $itunes->getPurchasedIDList(); if (!isset($ids['Apps']) || empty($ids['Apps'])) { die('No purchased app found.'); } $app_ids += $ids['Apps']; $ih = 'no'; if (isset($_REQUEST['import_hidden']) && $_REQUEST['import_hidden']) { $ids = $itunes->getPurchasedIDList(true);
<?php require __DIR__ . '/../src/classes/Appshopper.class.php'; $appshopper = new Appshopper(); $appshopper->login('sskaje', 'password'); $appshopper->detail('473056224');