├── source ├── images │ ├── logo.png │ ├── android.png │ ├── favicon.ico │ ├── loupe_big.png │ ├── notfound.png │ └── gallery_hover_left-right_sprite_l.png ├── libs │ ├── createMenu.php │ ├── createSidebar.php │ ├── item_info.php │ ├── index_items.php │ ├── filter_items.php │ ├── manageSearch.php │ └── category_items.php ├── js │ └── custom.js ├── app_filter.php ├── header.php ├── search.php ├── category_items.php ├── sidebar.php ├── item.php ├── index.php ├── css │ └── style.css ├── readme.html └── core │ └── playStoreApi.php └── README.md /source/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thetutlage/Google-Play-Store-API/HEAD/source/images/logo.png -------------------------------------------------------------------------------- /source/images/android.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thetutlage/Google-Play-Store-API/HEAD/source/images/android.png -------------------------------------------------------------------------------- /source/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thetutlage/Google-Play-Store-API/HEAD/source/images/favicon.ico -------------------------------------------------------------------------------- /source/images/loupe_big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thetutlage/Google-Play-Store-API/HEAD/source/images/loupe_big.png -------------------------------------------------------------------------------- /source/images/notfound.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thetutlage/Google-Play-Store-API/HEAD/source/images/notfound.png -------------------------------------------------------------------------------- /source/libs/createMenu.php: -------------------------------------------------------------------------------- 1 | listCategories(); ?> -------------------------------------------------------------------------------- /source/images/gallery_hover_left-right_sprite_l.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thetutlage/Google-Play-Store-API/HEAD/source/images/gallery_hover_left-right_sprite_l.png -------------------------------------------------------------------------------- /source/libs/createSidebar.php: -------------------------------------------------------------------------------- 1 | topTrendingApps(1); 3 | $top_new_free_apps = $play_store_api->topNewFreeApps(1); 4 | $top_new_paid_apps = $play_store_api->topNewPaidApps(1); 5 | ?> -------------------------------------------------------------------------------- /source/libs/item_info.php: -------------------------------------------------------------------------------- 1 | itemInfo($item_id); 6 | $relatedViewed = $play_store_api->relatedViewed($item_id); 7 | $relatedInstalled = $play_store_api->relatedInstalled($item_id); 8 | } 9 | ?> -------------------------------------------------------------------------------- /source/libs/index_items.php: -------------------------------------------------------------------------------- 1 | topGrossingApps(1); 3 | $topFreeGames = $play_store_api->topFreeGames(1); 4 | $topPaidGames = $play_store_api->topPaidGames(1); 5 | $staffPicks = $play_store_api->staffPicks(1); 6 | $staffPicksForTablet = $play_store_api->staffPicksForTablet(1); 7 | ?> -------------------------------------------------------------------------------- /source/libs/filter_items.php: -------------------------------------------------------------------------------- 1 | $cat_type($current_page); 13 | } 14 | ?> -------------------------------------------------------------------------------- /source/libs/manageSearch.php: -------------------------------------------------------------------------------- 1 | searchStore($search_query,$sort='Popularity',$price='All',$safe_search = 'Off',$start=$current_page); 15 | } 16 | ?> -------------------------------------------------------------------------------- /source/libs/category_items.php: -------------------------------------------------------------------------------- 1 | $function_name($cat_id,$start = $current_page); 26 | } 27 | ?> -------------------------------------------------------------------------------- /source/js/custom.js: -------------------------------------------------------------------------------- 1 | $(function(){ 2 | $('#menu_bar ul li').hover(function(){ 3 | $(this).find('.drop_down').show(); 4 | },function(){ 5 | $(this).find('.drop_down').hide(); 6 | }); 7 | 8 | $('#app_meta li a').click(function(){ 9 | var item_id = $(this).parent('li').attr('id'); 10 | $(this).closest('.single_right').find('.appWrapper').addClass('hidden'); 11 | $('#app_' + item_id).removeClass('hidden'); 12 | return false; 13 | }) 14 | 15 | $('#webnovae_slider li:first-child').addClass('current'); 16 | $('#webnovae_slider .prev').click(function(){ 17 | if($(this).closest('#webnovae_slider').find('li.current').prev().is('li')) 18 | { 19 | $(this).closest('#webnovae_slider').find('li.current').removeClass('current').prev('li').addClass('current', 1000); 20 | } 21 | }); 22 | 23 | $('#webnovae_slider .next').click(function(){ 24 | if($(this).closest('#webnovae_slider').find('li.current').next().is('li')){ 25 | $(this).closest('#webnovae_slider').find('li.current').removeClass('current').next().addClass('current', 1000); 26 | } 27 | }); 28 | 29 | 30 | }) -------------------------------------------------------------------------------- /source/app_filter.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 | 6 |
7 |
8 |
    9 | 10 |
  • 11 |
    12 |
    13 | 14 |
    15 |
    16 |
    17 | app_title; ?> 18 |
    19 |
    20 | app_author; ?> 21 |
    22 |
    23 |

    app_snippet; ?>

    24 |
    25 |
    26 | app_price; ?> 27 |
    28 |
    29 |
    30 |
  • 31 | 32 | 33 |
  • 34 |
    35 |

    No More Items Found

    36 |
    37 |
  • 38 | 39 |
40 | 41 | 50 | 51 |
52 |
53 |
54 | 55 | 56 |
57 |
58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /source/header.php: -------------------------------------------------------------------------------- 1 | Google API Store
This application makes use Google Play Store Api created by @aman virk.
-------------------------------------------------------------------------------- /source/search.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 | 6 |

Showing Results For

7 | 8 |
9 |
10 |
    11 | 12 |
  • 13 |
    14 |
    15 | 16 |
    17 |
    18 |
    19 | app_title; ?> 20 |
    21 |
    22 | app_author; ?> 23 |
    24 |
    25 |

    app_snippet; ?>

    26 |
    27 |
    28 | app_price; ?> 29 |
    30 |
    31 |
    32 |
  • 33 | 34 | 35 |
  • 36 |
    37 |

    No More Items Found

    38 |
    39 |
  • 40 | 41 |
42 | 43 | 52 | 53 |
54 |
55 |
56 | 57 | 58 |
59 |
60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /source/category_items.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 | 6 | Browsing "'.$categories_main_array[$_GET['cat_id']].'"'; }?> 7 | 8 |
9 | 13 |
14 | 15 |
16 |
17 |
    18 | 19 |
  • 20 |
    21 |
    22 | 23 |
    24 |
    25 |
    26 | app_title; ?> 27 |
    28 |
    29 | app_author; ?> 30 |
    31 |
    32 |

    app_snippet; ?>

    33 |
    34 |
    35 | app_price; ?> 36 |
    37 |
    38 |
    39 |
  • 40 | 41 | 42 |
  • 43 |
    44 |

    No More Items Found

    45 |
    46 |
  • 47 | 48 |
49 | 50 | 59 | 60 |
61 |
62 |
63 | 64 | 65 |
66 |
67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /source/sidebar.php: -------------------------------------------------------------------------------- 1 |

Trending Apps

All Trending Apps

Top New Free Apps

All Top New Free Apps

Top New Paid Apps

All Top New Paid Apps
-------------------------------------------------------------------------------- /source/item.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 5 |
6 |
7 | app_title; ?> 8 |
9 |
10 | app_author; ?> 11 |
12 | App Price :- app_price; ?> 13 |
14 |
15 |
16 | 17 |
18 |
19 |
20 | Get From Google Store 21 |
22 | 23 |
24 |
25 | banner_image)) { 26 | echo ''; } else { ?> 27 | 28 |
29 |
30 |
31 |
32 |
    33 |
  • Users who installed this also installed
  • 34 |
  • 35 |
36 |
37 |
38 |
    39 | = 4) { break; } 41 | ?> 42 |
  • 43 |
    44 |
    45 | 46 |
    47 |
    48 | 51 |
    52 | related_app_developer; ?> 53 |
    54 |
    55 | More Info 56 |
    57 |
    58 |
    59 | 60 |
  • 61 |
62 |
63 | 64 |
65 |
    66 |
  • Users who viewed this also viewed
  • 67 |
  • 68 |
69 |
70 |
71 |
    72 | = 4) { break; } 74 | ?> 75 |
  • 76 |
    77 |
    78 | 79 |
    80 |
    81 | 84 |
    85 | related_app_developer; ?> 86 |
    87 |
    88 | More Info 89 |
    90 |
    91 |
    92 | 93 |
  • 94 |
95 |
96 | 97 | 98 |
99 |
100 |
101 |
102 | 109 |
110 |
111 |

Description

112 | html_app_description; ?> 113 |
114 | 115 | 119 | 120 | 124 | 125 | 138 |
139 |
140 | 141 |
142 |
143 | 144 | 145 | 146 | -------------------------------------------------------------------------------- /source/index.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 | 6 |

Top Grossing Apps

7 |
8 |
9 |
    10 | = 4) { break; }?> 11 |
  • 12 |
    13 |
    14 | 15 |
    16 |
    17 |
    18 | app_title; ?> 19 |
    20 |
    21 | app_author; ?> 22 |
    23 |
    24 |

    app_snippet; ?>

    25 |
    26 |
    27 | app_price; ?> 28 |
    29 |
    30 |
    31 |
  • 32 | 33 |
34 |
35 | Show More » 36 |
37 |
38 |
39 | 40 | 41 | 42 |

Top Free Games

43 |
44 |
45 |
    46 | = 4) { break; }?> 47 |
  • 48 |
    49 |
    50 | 51 |
    52 |
    53 |
    54 | app_title; ?> 55 |
    56 |
    57 | app_author; ?> 58 |
    59 |
    60 |

    app_snippet; ?>

    61 |
    62 |
    63 | app_price; ?> 64 |
    65 |
    66 |
    67 |
  • 68 | 69 |
70 |
71 | Show More » 72 |
73 |
74 |
75 | 76 | 77 | 78 | 79 |

Top Paid Games

80 |
81 |
82 |
    83 | = 4) { break; }?> 84 |
  • 85 |
    86 |
    87 | 88 |
    89 |
    90 |
    91 | app_title; ?> 92 |
    93 |
    94 | app_author; ?> 95 |
    96 |
    97 |

    app_snippet; ?>

    98 |
    99 |
    100 | app_price; ?> 101 |
    102 |
    103 |
    104 |
  • 105 | 106 |
107 |
108 | Show More » 109 |
110 |
111 |
112 | 113 | 114 | 115 | 116 |

Staff Picks

117 |
118 |
119 |
    120 | = 4) { break; }?> 121 |
  • 122 |
    123 |
    124 | 125 |
    126 |
    127 |
    128 | app_title; ?> 129 |
    130 |
    131 | app_author; ?> 132 |
    133 |
    134 |

    app_snippet; ?>

    135 |
    136 |
    137 | app_price; ?> 138 |
    139 |
    140 |
    141 |
  • 142 | 143 |
144 |
145 | Show More » 146 |
147 |
148 |
149 | 150 | 151 | 152 | 153 |

Staff Picks For Tablet

154 |
155 |
156 |
    157 | = 4) { break; }?> 158 |
  • 159 |
    160 |
    161 | 162 |
    163 |
    164 |
    165 | app_title; ?> 166 |
    167 |
    168 | app_author; ?> 169 |
    170 |
    171 |

    app_snippet; ?>

    172 |
    173 |
    174 | app_price; ?> 175 |
    176 |
    177 |
    178 |
  • 179 | 180 |
181 |
182 | Show More » 183 |
184 |
185 |
186 | 187 | 188 |
189 | 190 |
191 |
192 | 193 | 194 | 195 | -------------------------------------------------------------------------------- /source/css/style.css: -------------------------------------------------------------------------------- 1 | @import url(http://fonts.googleapis.com/css?family=Droid+Sans:700); 2 | body { 3 | background-color: #DDDDDD; 4 | font-family: Arial,Helvetica,sans-serif; 5 | font-size: 62.5%; 6 | } 7 | *{ 8 | margin:0; 9 | padding:0; 10 | } 11 | a{ 12 | color: #7B9726; 13 | } 14 | .container{ 15 | width: 1000px; 16 | margin: auto; 17 | } 18 | .clear{ 19 | clear: both; 20 | } 21 | #message{ 22 | text-align:center; 23 | width:100%; 24 | padding-top:2px;font-weight:bold;overflow:hidden; 25 | background-color: #11396e; 26 | text-shadow: 0px -1px 1px #666; 27 | font-size: 14px; 28 | font-weight: bold; 29 | height:24px; 30 | padding-top:8px; 31 | } 32 | #message a{ 33 | color: #fff; 34 | text-decoration: none; 35 | } 36 | 37 | #social{ 38 | background: #000000; 39 | } 40 | #header{ 41 | background: #151515; 42 | height: 90px; 43 | } 44 | #header #logo{ 45 | margin-top: 10px; 46 | float: left; 47 | } 48 | #header #logo a{ 49 | float: left; 50 | margin-bottom: -10px; 51 | } 52 | #menu_bar{ 53 | background: #111111; 54 | border-top: 1px solid #333; 55 | float: left; 56 | width: 100%; 57 | } 58 | #menu_bar ul{ 59 | list-style: none outside none; 60 | } 61 | #menu_bar ul li{ 62 | list-style: none outside none; 63 | float: left; 64 | } 65 | #menu_bar ul li a{ 66 | color: #FFFFFF; 67 | display: block; 68 | font-size: 13px; 69 | height: 42px; 70 | line-height: 42px; 71 | width: 70px; 72 | text-decoration: none; 73 | text-shadow: 0px -1px 1px #666; 74 | font-weight: bold; 75 | } 76 | .search_store{ 77 | float: right; 78 | margin-top: 6px; 79 | position: relative; 80 | } 81 | .search_store input{ 82 | border: 1px solid #FFFFFF; 83 | border-radius: 4px 4px 4px 4px; 84 | -moz-border-radius: 4px 4px 4px 4px; 85 | -webkit-border-radius: 4px 4px 4px 4px; 86 | padding: 6px; 87 | width: 250px; 88 | } 89 | .search_store .search_icon{ 90 | margin-right: 8px; 91 | margin-top: 1px; 92 | position: absolute; 93 | right: 0; 94 | top: 0; 95 | } 96 | #content{ 97 | clear: both; 98 | padding-top: 30px; 99 | } 100 | .header_nav{ 101 | background-color: #F4F4F4; 102 | border-left: 1px solid #E5E5E5; 103 | border-right: 1px solid #E5E5E5; 104 | height: 32px; 105 | } 106 | .header_nav li{ 107 | float: left; 108 | font-size: 12px; 109 | font-weight: bold; 110 | list-style: none outside none; 111 | padding: 9px; 112 | border-right: 1px solid #ccc; 113 | } 114 | .header_nav li:last-child{ 115 | border-left: 1px solid #ccc; 116 | float: right; 117 | border-right: none; 118 | 119 | } 120 | .header_nav li a{ 121 | color: #555; 122 | text-decoration: none; 123 | } 124 | .title{ 125 | font-family: 'Droid Sans',sans-serif; 126 | font-size: 20px; 127 | margin-bottom: 30px; 128 | } 129 | .appContainer{ 130 | background: url("../images/android.png") no-repeat scroll 4px 50% #75b548; 131 | box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); 132 | -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); 133 | -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); 134 | color: #191919; 135 | font-family: helvetica,arial,sans-serif; 136 | margin: 5px auto 40px; 137 | padding-left: 38px; 138 | text-align: left; 139 | min-height: 60px; 140 | } 141 | .sideContainer{ 142 | box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); 143 | -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); 144 | -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); 145 | color: #191919; 146 | font-family: helvetica,arial,sans-serif; 147 | margin: 5px auto 40px; 148 | text-align: left; 149 | min-height: 60px; 150 | } 151 | .sideContainer ul li{ 152 | margin-left: 0; 153 | margin-right: 0px; 154 | position: relative; 155 | width: 90%; 156 | } 157 | .sideContainer ul li .app_info{ 158 | width: 55%; 159 | } 160 | .appWrapper { 161 | background-color: #FFFFFF; 162 | padding: 10px; 163 | min-height: 60px; 164 | } 165 | .appWrapper li{ 166 | display: inline-block; 167 | list-style: none outside none; 168 | margin: 20px; 169 | margin-left: 10px; 170 | margin-top: 10px; 171 | position: relative; 172 | width: 44%; 173 | } 174 | .appWrapper li .apps{ 175 | 176 | } 177 | .inline-block{ 178 | display: inline-block; 179 | position: relative; 180 | } 181 | .app_icon a{ 182 | display: block; 183 | width: 78px; 184 | text-align: right; 185 | } 186 | .app_icon a img{ 187 | width: 78px; 188 | min-height: 78px; 189 | } 190 | .app_info{ 191 | overflow: hidden; 192 | padding-left: 12px; 193 | vertical-align: top; 194 | width: 65%; 195 | } 196 | .app_info .app_title a{ 197 | color: #414242; 198 | font-size: 13px; 199 | font-weight: bold; 200 | white-space: nowrap; 201 | } 202 | .leftbar{ 203 | width: 73%; 204 | float: left; 205 | } 206 | .app_info .app_description p{ 207 | font-size: 11px; 208 | height: 40px; 209 | line-height: 1.2em; 210 | overflow: hidden; 211 | padding-bottom: 0; 212 | padding-top: 6px; 213 | } 214 | .show_more_apps{ 215 | margin-bottom: 5px; 216 | margin-right: 27px; 217 | margin-top: 1px; 218 | text-align: right; 219 | } 220 | .show_more_apps a{ 221 | color: #333; 222 | font-size: 13px; 223 | font-weight: bold; 224 | } 225 | .app_more{ 226 | margin-top: 10px; 227 | } 228 | .btn{ 229 | -webkit-border-radius:3px; 230 | -moz-border-radius:3px; 231 | -ms-border-radius:3px; 232 | -o-border-radius:3px; 233 | border-radius:3px; 234 | font-weight:bold; 235 | padding:7px 12px; 236 | cursor:pointer; 237 | display:inline-block; 238 | font-size:12px; 239 | text-decoration:none; 240 | background-color:#E6E6E6; 241 | background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#f9f9f9),color-stop(1,#E6E6E6)); 242 | background:-moz-linear-gradient(center top,#f9f9f9 0,#E6E6E6 100%); 243 | -pie-background:linear-gradient(270deg,#f9f9f9,#E6E6E6); 244 | border:1px solid #ccc; 245 | color:#505050; 246 | text-shadow:#fff 1px 1px 0; 247 | } 248 | .btn:hover{ 249 | color:#505050; 250 | background-color:#f6f6f6; 251 | background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#f2f2f2),color-stop(1,#f6f6f6)); 252 | background:-moz-linear-gradient(center top,#f2f2f2 0,#f6f6f6 100%); 253 | -pie-background:linear-gradient(270deg,#f2f2f2,#f6f6f6); 254 | } 255 | .btn.green{ 256 | background-color:#50A75C; 257 | background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#52A22F),color-stop(1,#50A75C)); 258 | background:-moz-linear-gradient(center top,#52A22F 0,#50A75C 100%); 259 | -pie-background:linear-gradient(270deg,#52A22F,#50A75C); 260 | border:1px solid #6ba147; 261 | color:#fff; 262 | text-shadow:#73b134 1px 1px 0; 263 | } 264 | .btn.green:hover{ 265 | background-color:#50A75C; 266 | background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#50A75C),color-stop(1,#52A22F)); 267 | background:-moz-linear-gradient(center top,#50A75C 0,#52A22F 100%); 268 | -pie-background:linear-gradient(270deg,#50A75C,#52A22F); 269 | } 270 | .btn.disabled{ 271 | background:#f9f9f9; 272 | color: #ccc; 273 | } 274 | .btn.disabled:hover{ 275 | background:#f9f9f9; 276 | color: #ccc; 277 | } 278 | .btn.fade_blue{ 279 | border: 1px solid #C8D5E0; 280 | -webkit-border-radius:3px; 281 | -moz-border-radius:3px; 282 | -ms-border-radius:3px; 283 | -o-border-radius:3px; 284 | border-radius:3px; 285 | background-color: #C8D5E0; 286 | font-weight: bold; 287 | } 288 | .btn.blue_mink{ 289 | border: 1px solid #C8D5E0; 290 | background-color: #C8D5E0; 291 | color: #1E598E; 292 | } 293 | .btn.ultrabig{ 294 | padding: 20px; 295 | width: 84%; 296 | } 297 | .btn.no_radius{ 298 | -webkit-border-radius:0px; 299 | -moz-border-radius:0px; 300 | -ms-border-radius:0px; 301 | -o-border-radius:0px; 302 | border-radius:0px; 303 | } 304 | .rightbar{ 305 | float: right; 306 | height: 400px; 307 | width: 26%; 308 | } 309 | .drop_down{ 310 | background: #151515; 311 | position: absolute; 312 | z-index: 1000; 313 | display: none; 314 | } 315 | #menu_bar ul li .drop_down li{ 316 | float: none; 317 | display: block; 318 | } 319 | #menu_bar ul li .drop_down li a{ 320 | padding-left: 14px; 321 | padding-right: 22px; 322 | width: auto; 323 | height: 30px; 324 | line-height: 30px; 325 | } 326 | #pagination { 327 | border-top: 1px solid #CCCCCC; 328 | margin-top: 10px; 329 | padding: 15px; 330 | } 331 | #pagination ul { 332 | list-style: none outside none; 333 | } 334 | #pagination ul li { 335 | display: inline-block; 336 | list-style: none outside none; 337 | margin: 0; 338 | width: auto; 339 | } 340 | #pagination ul li a { 341 | background: none repeat scroll 0 0 #444444; 342 | color: #FFFFFF; 343 | font-size: 13px; 344 | font-weight: bold; 345 | margin-left: 3px; 346 | padding: 3px 8px; 347 | text-decoration: none; 348 | } 349 | .single_left{ 350 | float: left; 351 | width: 27.1%; 352 | } 353 | .single_right{ 354 | float: right; 355 | width: 72%; 356 | } 357 | .app_basic_info{ 358 | background: none repeat scroll 0 0 #191919; 359 | color: #FFFFFF; 360 | font-weight: bold; 361 | min-height: 266px; 362 | padding: 40px; 363 | width: 19%; 364 | } 365 | .app_basic_info .app_title{ 366 | font-size: 22px; 367 | font-weight: bold; 368 | line-height: 1.1em; 369 | overflow: hidden; 370 | } 371 | .app_author{ 372 | font-size: 12px; 373 | margin-bottom: 16px; 374 | margin-top: 11px; 375 | text-transform: uppercase; 376 | } 377 | .app_banner{ 378 | } 379 | .single_right .sideContainer .appWrapper{ 380 | font-size: 13px; 381 | line-height:24px; 382 | } 383 | .single_right .sideContainer .appWrapper li{ 384 | width: 100%; 385 | display: block; 386 | } 387 | .doc-permissions-header, .doc-permission-group-title { 388 | color: #4D4D4D; 389 | display: block; 390 | font-size: 15px; 391 | font-weight: bold; 392 | margin-bottom: 2px; 393 | text-transform: uppercase; 394 | } 395 | .doc-permission-group-title { 396 | margin: 1em 0 .5em 0; 397 | } 398 | .single_right .sideContainer .appWrapper p{ 399 | padding: 0 0 1em 0; 400 | margin-bottom: 10px; 401 | } 402 | .sideContainer .header_nav li{ 403 | width: auto; 404 | cursor: pointer; 405 | } 406 | .hidden{ 407 | display: none; 408 | } 409 | #webnovae_slider{ 410 | overflow: hidden; 411 | position: relative; 412 | width: auto !important; 413 | background: none repeat scroll 0 0 #000; 414 | padding: 20px; 415 | text-align: center; 416 | } 417 | #webnovae_slider li{ 418 | width: 100%; 419 | display: none; 420 | transition: all 2s linear 4s; 421 | -moz-transition: all 2s linear 4s; 422 | -webkit-transition: all 2s linear 4s; 423 | -o-transition: all 2s linear 4s; 424 | } 425 | #webnovae_slider li.current{ 426 | display: block; 427 | } 428 | #webnovae_slider .controls{ 429 | cursor: pointer; 430 | } 431 | #webnovae_slider .controls .prev{ 432 | background: url("../images/gallery_hover_left-right_sprite_l.png") no-repeat scroll left top transparent; 433 | height: 91px; 434 | left: 0; 435 | position: absolute; 436 | top: 40%; 437 | width: 73px; 438 | } 439 | #webnovae_slider .controls .prev:hover{ 440 | background-position: left bottom; 441 | } 442 | #webnovae_slider .controls .next{ 443 | background: url("../images/gallery_hover_left-right_sprite_l.png") no-repeat scroll right top transparent; 444 | height: 91px; 445 | right: 0; 446 | position: absolute; 447 | top: 40%; 448 | width: 73px; 449 | } 450 | #webnovae_slider .controls .next:hover{ 451 | background-position: right bottom; 452 | } 453 | .single_left .appWrapper li{ 454 | width: 100%; 455 | } 456 | .single_left .header_nav{ 457 | margin-top: 5px; 458 | } 459 | .single_left .app_info{ 460 | width: 52%; 461 | } 462 | -------------------------------------------------------------------------------- /source/readme.html: -------------------------------------------------------------------------------- 1 | Google Store API Documentation

Unofficial Google Play Store API @aman virk

Introduction

Play Store API is an unofficial version of Google Play Store which will let you pullup applications from google play store using 18 different functions covering almost everything from google store

Requirements

  1. Php 5.0 or greater
  2. CURL enabled server
  3. Support for mb_eregi function.

Error Handling

Class itself does all required error handling. All functions will return 0 in case of any error and will return array of data in case of success.

List Of Functions

  1. Getting Top Paid Apps
  2. Getting Top Free Apps
  3. Getting Top Grossing Apps
  4. Getting Top New Paid Apps
  5. Getting Top New Free Apps
  6. Getting Top Paid Games
  7. Getting Top Free Games
  8. Getting Trending Apps
  9. Getting Staff Picks
  10. Getting Staff Picks For Tablet
  11. List All Categories
  12. Finding Paid Items In A Category
  13. Finding Free Items In A Category
  14. Finding Items From A Certain Developer
  15. Search Items
  16. Getting Item Info
  17. Finding Related Viewed Items
  18. Finding Related Installed

Getting Top Paid Apps

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
		
		/* WITHOUT PARAMERTER */
		$topPaidApps = $class_init->topPaidApps(); // calling topPaidApps

		/* PAGINATION PARAMETER */
		// You can easily add the page numbers to paginate the result
		$page = 2;
		$topPaidApps = $class_init->topPaidApps($page); // calling topPaidApps

		if($topPaidApps !== 0)
		{
			print_r($topPaidApps); // it will show all data inside an array
		}
	

Getting Top Free Apps

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* WITHOUT PARAMERTER */
		$topFreeApps = $class_init->topFreeApps(); // calling topFreeApps

		/* PAGINATION PARAMETER */
		// You can easily add the page numbers to paginate the result
		$page = 2;
		$topFreeApps = $class_init->topFreeApps($page); // calling topFreeApps

		if($topFreeApps !== 0)
		{
			print_r($topFreeApps); // it will show all data inside an array
		}
	

Getting Top Grossing Apps

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* WITHOUT PARAMERTER */
		$topGrossingApps = $class_init->topGrossingApps(); // calling topGrossingApps

		/* PAGINATION PARAMETER */
		// You can easily add the page numbers to paginate the result
		$page = 2;
		$topGrossingApps = $class_init->topGrossingApps($page); // calling topGrossingApps

		if($topGrossingApps !== 0)
		{
			print_r($topGrossingApps); // it will show all data inside an array
		}
	

Getting Top New Paid Apps

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* WITHOUT PARAMERTER */
		$topNewPaidApps = $class_init->topNewPaidApps(); // calling topNewPaidApps

		/* PAGINATION PARAMETER */
		// You can easily add the page numbers to paginate the result
		$page = 2;
		$topNewPaidApps = $class_init->topNewPaidApps($page); // calling topNewPaidApps

		if($topNewPaidApps !== 0)
		{
			print_r($topNewPaidApps); // it will show all data inside an array
		}
	

Getting Top New Free Apps

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* WITHOUT PARAMERTER */
		$topNewFreeApps = $class_init->topNewFreeApps(); // calling topNewFreeApps

		/* PAGINATION PARAMETER */
		// You can easily add the page numbers to paginate the result
		$page = 2;
		$topNewFreeApps = $class_init->topNewFreeApps($page); // calling topNewFreeApps

		if($topNewFreeApps !== 0)
		{
			print_r($topNewFreeApps); // it will show all data inside an array
		}
	

Getting Top Paid Games

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* WITHOUT PARAMERTER */
		$topPaidGames = $class_init->topPaidGames(); // calling topPaidGames

		/* PAGINATION PARAMETER */
		// You can easily add the page numbers to paginate the result
		$page = 2;
		$topPaidGames = $class_init->topPaidGames($page); // calling topPaidGames

		if($topPaidGames !== 0)
		{
			print_r($topPaidGames); // it will show all data inside an array
		}
	

Getting Top Free Games

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* WITHOUT PARAMERTER */
		$topFreeGames = $class_init->topFreeGames(); // calling topFreeGames

		/* PAGINATION PARAMETER */
		// You can easily add the page numbers to paginate the result
		$page = 2;
		$topFreeGames = $class_init->topFreeGames($page); // calling topFreeGames

		if($topFreeGames !== 0)
		{
			print_r($topFreeGames); // it will show all data inside an array
		}
	

Getting Trending Apps

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* WITHOUT PARAMERTER */
		$topTrendingApps = $class_init->topTrendingApps(); // calling topTrendingApps

		/* PAGINATION PARAMETER */
		// You can easily add the page numbers to paginate the result
		$page = 2;
		$topTrendingApps = $class_init->topTrendingApps($page); // calling topTrendingApps

		if($topTrendingApps !== 0)
		{
			print_r($topTrendingApps); // it will show all data inside an array
		}
	

Getting Staff Picks

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* WITHOUT PARAMERTER */
		$staffPicks = $class_init->staffPicks(); // calling staffPicks

		/* PAGINATION PARAMETER */
		// You can easily add the page numbers to paginate the result
		$page = 2;
		$staffPicks = $class_init->staffPicks($page); // calling staffPicks

		if($staffPicks !== 0)
		{
			print_r($staffPicks); // it will show all data inside an array
		}
	

Getting Staff Picks For Tablet

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* WITHOUT PARAMERTER */
		$staffPicksForTablet = $class_init->staffPicksForTablet(); // calling staffPicksForTablet

		/* PAGINATION PARAMETER */
		// You can easily add the page numbers to paginate the result
		$page = 2;
		$staffPicksForTablet = $class_init->staffPicksForTablet($page); // calling staffPicksForTablet

		if($staffPicksForTablet !== 0)
		{
			print_r($staffPicksForTablet); // it will show all data inside an array
		}
	

List All Categories

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		$listCategories = $class_init->listCategories(); // calling listCategories

		if($listCategories !== 0)
		{
			print_r($listCategories['Games']); // it will show all games cateogry inside an array
			print_r($listCategories['Applications']); // it will show all games cateogry inside an array
		}
	

Finding Paid Items In A Category

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* WITHOUT PAGINATION PARAMERTER */
		$category_name = 'Themes'
		$categoryPaidItems = $class_init->categoryPaidItems($category_name); // calling categoryPaidItems

		/* PAGINATION PARAMETER */
		// You can easily add the page numbers to paginate the result
		$page = 2;
		$categoryPaidItems = $class_init->categoryPaidItems($category_name,$page); // calling categoryPaidItems

		if($categoryPaidItems !== 0)
		{
			print_r($categoryPaidItems); // it will show all data inside an array
		}
	

Getting Free Items In A Category

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* WITHOUT PAGINATION PARAMERTER */
		$category_name = 'Themes'
		$categoryFreeItems = $class_init->categoryFreeItems($category_name); // calling categoryFreeItems

		/* PAGINATION PARAMETER */
		// You can easily add the page numbers to paginate the result
		$page = 2;
		$categoryFreeItems = $class_init->categoryFreeItems($category_name,$page); // calling categoryFreeItems

		if($categoryFreeItems !== 0)
		{
			print_r($categoryFreeItems); // it will show all data inside an array
		}
	

Finding Items From A Certain Developer

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* WITHOUT PAGINATION PARAMERTER */
		$developer_name = 'ZYNGA'
		$developerItems = $class_init->developerItems($developer_name); // calling developerItems

		/* PAGINATION PARAMETER */
		// You can easily add the page numbers to paginate the result
		$page = 2;
		$developerItems = $class_init->developerItems($developer_name,$page); // calling developerItems

		if($developerItems !== 0)
		{
			print_r($developerItems); // it will show all data inside an array
		}
	

Search Items

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* SEARCH PARAMETERE */
		$search_query = 'Go Themes';
		$sort = 'Popularity'	// Popularity OR Relevance ( OPTIONAL )
		$price = 'All'	// Free OR Paid OR All ( OPTIONAL )
		$safe_search = 'Off' 	// Off OR On	( OPTIONAL )

		/* WITHOUT PAGINATION PARAMERTER */
		
		$searchStore = $class_init->searchStore($search_query,$sort,$price,$safe_search); // calling searchStore

		/* PAGINATION PARAMETER */
		// You can easily add the page numbers to paginate the result
		$page = 2;
		$searchStore = $class_init->searchStore($search_query,$sort,$price,$safe_search,$page); // calling searchStore

		if($searchStore !== 0)
		{
			print_r($searchStore); // it will show all data inside an array
		}
	

Getting Item Info

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* WITHOUT PAGINATION PARAMERTER */
		$item_id = 'com.golauncher.go'
		$itemInfo = $class_init->itemInfo($item_id); // calling itemInfo

		if($itemInfo !== 0)
		{
			print_r($itemInfo); // it will show all data inside an array
		}
	

Finding Related Viewed Items

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* WITHOUT PAGINATION PARAMERTER */
		$item_id = 'com.golauncher.go'
		$relatedViewed = $class_init->relatedViewed($item_id); // calling relatedViewed

		if($relatedViewed !== 0)
		{
			print_r($relatedViewed); // it will show all data inside an array
		}
	

Finding Related Installed

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class

		/* WITHOUT PAGINATION PARAMERTER */
		$item_id = 'com.golauncher.go'
		$relatedInstalled = $class_init->relatedInstalled($item_id); // calling relatedInstalled

		if($relatedInstalled !== 0)
		{
			print_r($relatedInstalled); // it will show all data inside an array
		}
	
-------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Google-Play-Store-API 2 | ===================== 3 | 4 | ## DEPRECIATED 5 | 6 | Play Store API is an unofficial version of Google Play Store which will let you pullup applications from google play store using18 different functions covering almost everything from google store 7 | 8 |

Requirements

9 |
    10 |
  1. Php 5.0 or greater
  2. 11 |
  3. CURL enabled server
  4. 12 |
  5. Support for mb_eregi function.
  6. 13 |
14 | 15 |

Error Handling

16 |

Class itself does all required error handling. All functions will return 0 in case of any error and will return array of data in case of success.

17 | 18 |

List Of Functions

19 |
    20 |
  1. Getting Top Paid Apps
  2. 21 |
  3. Getting Top Free Apps
  4. 22 |
  5. Getting Top Grossing Apps
  6. 23 |
  7. Getting Top New Paid Apps
  8. 24 |
  9. Getting Top New Free Apps
  10. 25 |
  11. Getting Top Paid Games
  12. 26 |
  13. Getting Top Free Games
  14. 27 |
  15. Getting Trending Apps
  16. 28 |
  17. Getting Staff Picks
  18. 29 |
  19. Getting Staff Picks For Tablet
  20. 30 |
  21. List All Categories
  22. 31 |
  23. Finding Paid Items In A Category
  24. 32 |
  25. Finding Free Items In A Category
  26. 33 |
  27. Finding Items From A Certain Developer
  28. 34 |
  29. Search Items
  30. 35 |
  31. Getting Item Info
  32. 36 |
  33. Finding Related Viewed Items
  34. 37 |
  35. Finding Related Installed
  36. 38 |
39 | 40 |
41 |

Getting Top Paid Apps

42 | 43 |
 44 | 		include_once('api/playStoreApi.php'); // including class file
 45 | 		$class_init = new PlayStoreApi;	// initiating class
 46 | 		
 47 | 		/* WITHOUT PARAMERTER */
 48 | 		$topPaidApps = $class_init->topPaidApps(); // calling topPaidApps
 49 | 
 50 | 		/* PAGINATION PARAMETER */
 51 | 		// You can easily add the page numbers to paginate the result
 52 | 		$page = 2;
 53 | 		$topPaidApps = $class_init->topPaidApps($page); // calling topPaidApps
 54 | 
 55 | 		if($topPaidApps !== 0)
 56 | 		{
 57 | 			print_r($topPaidApps); // it will show all data inside an array
 58 | 		}
 59 | 	
60 |
61 | 62 |
63 |

Getting Top Free Apps

64 |
 65 | 		include_once('api/playStoreApi.php'); // including class file
 66 | 		$class_init = new PlayStoreApi;	// initiating class
 67 | 
 68 | 		/* WITHOUT PARAMERTER */
 69 | 		$topFreeApps = $class_init->topFreeApps(); // calling topFreeApps
 70 | 
 71 | 		/* PAGINATION PARAMETER */
 72 | 		// You can easily add the page numbers to paginate the result
 73 | 		$page = 2;
 74 | 		$topFreeApps = $class_init->topFreeApps($page); // calling topFreeApps
 75 | 
 76 | 		if($topFreeApps !== 0)
 77 | 		{
 78 | 			print_r($topFreeApps); // it will show all data inside an array
 79 | 		}
 80 | 	
81 |
82 | 83 |
84 |

Getting Top Grossing Apps

85 |
 86 | 		include_once('api/playStoreApi.php'); // including class file
 87 | 		$class_init = new PlayStoreApi;	// initiating class
 88 | 
 89 | 		/* WITHOUT PARAMERTER */
 90 | 		$topGrossingApps = $class_init->topGrossingApps(); // calling topGrossingApps
 91 | 
 92 | 		/* PAGINATION PARAMETER */
 93 | 		// You can easily add the page numbers to paginate the result
 94 | 		$page = 2;
 95 | 		$topGrossingApps = $class_init->topGrossingApps($page); // calling topGrossingApps
 96 | 
 97 | 		if($topGrossingApps !== 0)
 98 | 		{
 99 | 			print_r($topGrossingApps); // it will show all data inside an array
100 | 		}
101 | 	
102 |
103 | 104 |
105 |

Getting Top New Paid Apps

106 |
107 | 		include_once('api/playStoreApi.php'); // including class file
108 | 		$class_init = new PlayStoreApi;	// initiating class
109 | 
110 | 		/* WITHOUT PARAMERTER */
111 | 		$topNewPaidApps = $class_init->topNewPaidApps(); // calling topNewPaidApps
112 | 
113 | 		/* PAGINATION PARAMETER */
114 | 		// You can easily add the page numbers to paginate the result
115 | 		$page = 2;
116 | 		$topNewPaidApps = $class_init->topNewPaidApps($page); // calling topNewPaidApps
117 | 
118 | 		if($topNewPaidApps !== 0)
119 | 		{
120 | 			print_r($topNewPaidApps); // it will show all data inside an array
121 | 		}
122 | 	
123 |
124 | 125 |
126 |

Getting Top New Free Apps

127 |
128 | 		include_once('api/playStoreApi.php'); // including class file
129 | 		$class_init = new PlayStoreApi;	// initiating class
130 | 
131 | 		/* WITHOUT PARAMERTER */
132 | 		$topNewFreeApps = $class_init->topNewFreeApps(); // calling topNewFreeApps
133 | 
134 | 		/* PAGINATION PARAMETER */
135 | 		// You can easily add the page numbers to paginate the result
136 | 		$page = 2;
137 | 		$topNewFreeApps = $class_init->topNewFreeApps($page); // calling topNewFreeApps
138 | 
139 | 		if($topNewFreeApps !== 0)
140 | 		{
141 | 			print_r($topNewFreeApps); // it will show all data inside an array
142 | 		}
143 | 	
144 |
145 | 146 |
147 |

Getting Top Paid Games

148 |
149 | 		include_once('api/playStoreApi.php'); // including class file
150 | 		$class_init = new PlayStoreApi;	// initiating class
151 | 
152 | 		/* WITHOUT PARAMERTER */
153 | 		$topPaidGames = $class_init->topPaidGames(); // calling topPaidGames
154 | 
155 | 		/* PAGINATION PARAMETER */
156 | 		// You can easily add the page numbers to paginate the result
157 | 		$page = 2;
158 | 		$topPaidGames = $class_init->topPaidGames($page); // calling topPaidGames
159 | 
160 | 		if($topPaidGames !== 0)
161 | 		{
162 | 			print_r($topPaidGames); // it will show all data inside an array
163 | 		}
164 | 	
165 |
166 | 167 |
168 |

Getting Top Free Games

169 |
170 | 		include_once('api/playStoreApi.php'); // including class file
171 | 		$class_init = new PlayStoreApi;	// initiating class
172 | 
173 | 		/* WITHOUT PARAMERTER */
174 | 		$topFreeGames = $class_init->topFreeGames(); // calling topFreeGames
175 | 
176 | 		/* PAGINATION PARAMETER */
177 | 		// You can easily add the page numbers to paginate the result
178 | 		$page = 2;
179 | 		$topFreeGames = $class_init->topFreeGames($page); // calling topFreeGames
180 | 
181 | 		if($topFreeGames !== 0)
182 | 		{
183 | 			print_r($topFreeGames); // it will show all data inside an array
184 | 		}
185 | 	
186 |
187 | 188 |
189 |

Getting Trending Apps

190 |
191 | 		include_once('api/playStoreApi.php'); // including class file
192 | 		$class_init = new PlayStoreApi;	// initiating class
193 | 
194 | 		/* WITHOUT PARAMERTER */
195 | 		$topTrendingApps = $class_init->topTrendingApps(); // calling topTrendingApps
196 | 
197 | 		/* PAGINATION PARAMETER */
198 | 		// You can easily add the page numbers to paginate the result
199 | 		$page = 2;
200 | 		$topTrendingApps = $class_init->topTrendingApps($page); // calling topTrendingApps
201 | 
202 | 		if($topTrendingApps !== 0)
203 | 		{
204 | 			print_r($topTrendingApps); // it will show all data inside an array
205 | 		}
206 | 	
207 |
208 | 209 |
210 |

Getting Staff Picks

211 |
212 | 		include_once('api/playStoreApi.php'); // including class file
213 | 		$class_init = new PlayStoreApi;	// initiating class
214 | 
215 | 		/* WITHOUT PARAMERTER */
216 | 		$staffPicks = $class_init->staffPicks(); // calling staffPicks
217 | 
218 | 		/* PAGINATION PARAMETER */
219 | 		// You can easily add the page numbers to paginate the result
220 | 		$page = 2;
221 | 		$staffPicks = $class_init->staffPicks($page); // calling staffPicks
222 | 
223 | 		if($staffPicks !== 0)
224 | 		{
225 | 			print_r($staffPicks); // it will show all data inside an array
226 | 		}
227 | 	
228 |
229 | 230 |
231 |

Getting Staff Picks For Tablet

232 |
233 | 		include_once('api/playStoreApi.php'); // including class file
234 | 		$class_init = new PlayStoreApi;	// initiating class
235 | 
236 | 		/* WITHOUT PARAMERTER */
237 | 		$staffPicksForTablet = $class_init->staffPicksForTablet(); // calling staffPicksForTablet
238 | 
239 | 		/* PAGINATION PARAMETER */
240 | 		// You can easily add the page numbers to paginate the result
241 | 		$page = 2;
242 | 		$staffPicksForTablet = $class_init->staffPicksForTablet($page); // calling staffPicksForTablet
243 | 
244 | 		if($staffPicksForTablet !== 0)
245 | 		{
246 | 			print_r($staffPicksForTablet); // it will show all data inside an array
247 | 		}
248 | 	
249 |
250 | 251 |
252 |

List All Categories

253 |
254 | 		include_once('api/playStoreApi.php'); // including class file
255 | 		$class_init = new PlayStoreApi;	// initiating class
256 | 
257 | 		$listCategories = $class_init->listCategories(); // calling listCategories
258 | 
259 | 		if($listCategories !== 0)
260 | 		{
261 | 			print_r($listCategories['Games']); // it will show all games cateogry inside an array
262 | 			print_r($listCategories['Applications']); // it will show all games cateogry inside an array
263 | 		}
264 | 	
265 |
266 | 267 |
268 |

Finding Paid Items In A Category

269 |
270 | 		include_once('api/playStoreApi.php'); // including class file
271 | 		$class_init = new PlayStoreApi;	// initiating class
272 | 
273 | 		/* WITHOUT PAGINATION PARAMERTER */
274 | 		$category_name = 'Themes'
275 | 		$categoryPaidItems = $class_init->categoryPaidItems($category_name); // calling categoryPaidItems
276 | 
277 | 		/* PAGINATION PARAMETER */
278 | 		// You can easily add the page numbers to paginate the result
279 | 		$page = 2;
280 | 		$categoryPaidItems = $class_init->categoryPaidItems($category_name,$page); // calling categoryPaidItems
281 | 
282 | 		if($categoryPaidItems !== 0)
283 | 		{
284 | 			print_r($categoryPaidItems); // it will show all data inside an array
285 | 		}
286 | 	
287 |
288 | 289 |
290 |

Getting Free Items In A Category

291 |
292 | 		include_once('api/playStoreApi.php'); // including class file
293 | 		$class_init = new PlayStoreApi;	// initiating class
294 | 
295 | 		/* WITHOUT PAGINATION PARAMERTER */
296 | 		$category_name = 'Themes'
297 | 		$categoryFreeItems = $class_init->categoryFreeItems($category_name); // calling categoryFreeItems
298 | 
299 | 		/* PAGINATION PARAMETER */
300 | 		// You can easily add the page numbers to paginate the result
301 | 		$page = 2;
302 | 		$categoryFreeItems = $class_init->categoryFreeItems($category_name,$page); // calling categoryFreeItems
303 | 
304 | 		if($categoryFreeItems !== 0)
305 | 		{
306 | 			print_r($categoryFreeItems); // it will show all data inside an array
307 | 		}
308 | 	
309 |
310 | 311 |
312 |

Finding Items From A Certain Developer

313 |
314 | 		include_once('api/playStoreApi.php'); // including class file
315 | 		$class_init = new PlayStoreApi;	// initiating class
316 | 
317 | 		/* WITHOUT PAGINATION PARAMERTER */
318 | 		$developer_name = 'ZYNGA'
319 | 		$developerItems = $class_init->developerItems($developer_name); // calling developerItems
320 | 
321 | 		/* PAGINATION PARAMETER */
322 | 		// You can easily add the page numbers to paginate the result
323 | 		$page = 2;
324 | 		$developerItems = $class_init->developerItems($developer_name,$page); // calling developerItems
325 | 
326 | 		if($developerItems !== 0)
327 | 		{
328 | 			print_r($developerItems); // it will show all data inside an array
329 | 		}
330 | 	
331 |
332 | 333 |
334 |

Search Items

335 |
336 | 		include_once('api/playStoreApi.php'); // including class file
337 | 		$class_init = new PlayStoreApi;	// initiating class
338 | 
339 | 		/* SEARCH PARAMETERE */
340 | 		$search_query = 'Go Themes';
341 | 		$sort = 'Popularity'	// Popularity OR Relevance ( OPTIONAL )
342 | 		$price = 'All'	// Free OR Paid OR All ( OPTIONAL )
343 | 		$safe_search = 'Off' 	// Off OR On	( OPTIONAL )
344 | 
345 | 		/* WITHOUT PAGINATION PARAMERTER */
346 | 		
347 | 		$searchStore = $class_init->searchStore($search_query,$sort,$price,$safe_search); // calling searchStore
348 | 
349 | 		/* PAGINATION PARAMETER */
350 | 		// You can easily add the page numbers to paginate the result
351 | 		$page = 2;
352 | 		$searchStore = $class_init->searchStore($search_query,$sort,$price,$safe_search,$page); // calling searchStore
353 | 
354 | 		if($searchStore !== 0)
355 | 		{
356 | 			print_r($searchStore); // it will show all data inside an array
357 | 		}
358 | 	
359 |
360 | 361 |
362 |

Getting Item Info

363 |
364 | 		include_once('api/playStoreApi.php'); // including class file
365 | 		$class_init = new PlayStoreApi;	// initiating class
366 | 
367 | 		/* WITHOUT PAGINATION PARAMERTER */
368 | 		$item_id = 'com.golauncher.go'
369 | 		$itemInfo = $class_init->itemInfo($item_id); // calling itemInfo
370 | 
371 | 		if($itemInfo !== 0)
372 | 		{
373 | 			print_r($itemInfo); // it will show all data inside an array
374 | 		}
375 | 	
376 |
377 | 378 |
379 |

Finding Related Viewed Items

380 |
381 | 		include_once('api/playStoreApi.php'); // including class file
382 | 		$class_init = new PlayStoreApi;	// initiating class
383 | 
384 | 		/* WITHOUT PAGINATION PARAMERTER */
385 | 		$item_id = 'com.golauncher.go'
386 | 		$relatedViewed = $class_init->relatedViewed($item_id); // calling relatedViewed
387 | 
388 | 		if($relatedViewed !== 0)
389 | 		{
390 | 			print_r($relatedViewed); // it will show all data inside an array
391 | 		}
392 | 	
393 |
394 | 395 |
396 |

Finding Related Installed

397 |
398 | 		include_once('api/playStoreApi.php'); // including class file
399 | 		$class_init = new PlayStoreApi;	// initiating class
400 | 
401 | 		/* WITHOUT PAGINATION PARAMERTER */
402 | 		$item_id = 'com.golauncher.go'
403 | 		$relatedInstalled = $class_init->relatedInstalled($item_id); // calling relatedInstalled
404 | 
405 | 		if($relatedInstalled !== 0)
406 | 		{
407 | 			print_r($relatedInstalled); // it will show all data inside an array
408 | 		}
409 | 	
410 |
411 | -------------------------------------------------------------------------------- /source/core/playStoreApi.php: -------------------------------------------------------------------------------- 1 | [[:space:]]+window\.location\.replace\('(.*)'\)/i", $content, $value) || preg_match("/>[[:space:]]+window\.location\=\"(.*)\"/i", $content, $value) ) && $javascript_loop < 5) { 41 | return get_url( $value[1], $javascript_loop+1 ); 42 | } else { 43 | return array( $content, $response ); 44 | } 45 | } 46 | 47 | function topPaidApps($start = 1){ 48 | $start = $start - 1; 49 | $start = $start * 24; 50 | $page_url = 'https://play.google.com/store/apps/collection/topselling_paid?start='.$start.'&num=24'; 51 | $elements_to_look = 'snippet-list'; 52 | $this_content = $this->get_fcontent($page_url); 53 | if(isset($this_content[0])){ 54 | phpQuery::newDocumentHTML($this_content[0]); 55 | $error_found = pq("#error-section")->text(); 56 | if($error_found == "We're sorry, the requested URL was not found on this server.") 57 | { 58 | return 0; 59 | } 60 | 61 | $list_items = pq('.'.$elements_to_look.' > li'); 62 | $break_all_items = explode('',$list_items); 63 | $break_all_items = str_replace('
  • ','',$break_all_items); 64 | foreach($break_all_items as $li) 65 | { 66 | phpQuery::newDocument($li); 67 | $icon = pq('img')->attr('src'); 68 | $app_title = pq('.details > div > a.title')->html(); 69 | $app_author = pq('.attribution > div > a')->html(); 70 | $app_snippet = pq('.snippet-content')->html(); 71 | $app_price = pq('.buy-button-price')->text(); 72 | // external links 73 | $app_play_store_link = $this->base_store_url.''.pq('.details > div > a.title')->attr('href'); 74 | $app_id_context = explode('?id=',$app_play_store_link); 75 | if(isset($app_id_context[1])) 76 | { 77 | $app_id_context = explode('&',$app_id_context[1]); 78 | $app_id = $app_id_context[0]; 79 | } 80 | else 81 | { 82 | $app_id = 'Not defined'; 83 | } 84 | $ratings_context = explode(' ',pq('.ratings')->attr('title')); 85 | if(isset($ratings_context[1])){$ratings = $ratings_context[1];}else{$ratings = 'Not defined';} 86 | if(!empty($app_id) && $app_id != 'Not defined') 87 | { 88 | $paid_apps[] = (object) array('app_title' => $app_title,'app_icon' => $icon,'app_author' => $app_author,'app_snippet' => $app_snippet,'app_price' => $app_price, 89 | 'app_play_store_link' => $app_play_store_link,'app_id' => $app_id,'app_ratings' => $ratings); 90 | } 91 | } 92 | return $paid_apps; 93 | } 94 | else 95 | { 96 | return 0; 97 | } 98 | } 99 | 100 | function topFreeApps($start = 1){ 101 | $start = $start - 1; 102 | $start = $start * 24; 103 | $page_url = 'https://play.google.com/store/apps/collection/topselling_free?start='.$start.'&num=24'; 104 | $elements_to_look = 'snippet-list'; 105 | $this_content = $this->get_fcontent($page_url); 106 | if(isset($this_content[0])){ 107 | phpQuery::newDocumentHTML($this_content[0]); 108 | $error_found = pq("#error-section")->text(); 109 | if($error_found == "We're sorry, the requested URL was not found on this server.") 110 | { 111 | return 0; 112 | } 113 | 114 | $list_items = pq('.'.$elements_to_look.' > li'); 115 | $break_all_items = explode('
  • ',$list_items); 116 | $break_all_items = str_replace('
  • ','',$break_all_items); 117 | foreach($break_all_items as $li) 118 | { 119 | phpQuery::newDocument($li); 120 | $icon = pq('img')->attr('src'); 121 | $app_title = pq('.details > div > a.title')->html(); 122 | $app_author = pq('.attribution > div > a')->html(); 123 | $app_snippet = pq('.snippet-content')->html(); 124 | $app_price = pq('.buy-button-price')->text(); 125 | if($app_price == 'Install') { $app_price = 'Free'; } 126 | // external links 127 | $app_play_store_link = $this->base_store_url.''.pq('.details > div > a.title')->attr('href'); 128 | $app_id_context = explode('?id=',$app_play_store_link); 129 | if(isset($app_id_context[1])) 130 | { 131 | $app_id_context = explode('&',$app_id_context[1]); 132 | $app_id = $app_id_context[0]; 133 | } 134 | else 135 | { 136 | $app_id = 'Not defined'; 137 | } 138 | $ratings_context = explode(' ',pq('.ratings')->attr('title')); 139 | if(isset($ratings_context[1])){$ratings = $ratings_context[1];}else{$ratings = 'Not defined';} 140 | if(!empty($app_id) && $app_id != 'Not defined') 141 | { 142 | $free_apps[] = (object) array('app_title' => $app_title,'app_icon' => $icon,'app_author' => $app_author,'app_snippet' => $app_snippet,'app_price' => $app_price, 143 | 'app_play_store_link' => $app_play_store_link,'app_id' => $app_id,'app_ratings' => $ratings); 144 | } 145 | } 146 | return $free_apps; 147 | } 148 | else 149 | { 150 | return 0; 151 | } 152 | } 153 | 154 | function topGrossingApps($start = 1){ 155 | $start = $start - 1; 156 | $start = $start * 24; 157 | $page_url = 'https://play.google.com/store/apps/collection/topgrossing?start='.$start.'&num=24'; 158 | $elements_to_look = 'snippet-list'; 159 | $this_content = $this->get_fcontent($page_url); 160 | if(isset($this_content[0])){ 161 | phpQuery::newDocumentHTML($this_content[0]); 162 | $error_found = pq("#error-section")->text(); 163 | if($error_found == "We're sorry, the requested URL was not found on this server.") 164 | { 165 | return 0; 166 | } 167 | 168 | $list_items = pq('.'.$elements_to_look.' > li'); 169 | $break_all_items = explode('
  • ',$list_items); 170 | $break_all_items = str_replace('
  • ','',$break_all_items); 171 | foreach($break_all_items as $li) 172 | { 173 | phpQuery::newDocument($li); 174 | $icon = pq('img')->attr('src'); 175 | $app_title = pq('.details > div > a.title')->html(); 176 | $app_author = pq('.attribution > div > a')->html(); 177 | $app_snippet = pq('.snippet-content')->html(); 178 | $app_price = pq('.buy-button-price')->text(); 179 | if($app_price == 'Install') { $app_price = 'Free'; } 180 | // external links 181 | $app_play_store_link = $this->base_store_url.''.pq('.details > div > a.title')->attr('href'); 182 | $app_id_context = explode('?id=',$app_play_store_link); 183 | if(isset($app_id_context[1])) 184 | { 185 | $app_id_context = explode('&',$app_id_context[1]); 186 | $app_id = $app_id_context[0]; 187 | } 188 | else 189 | { 190 | $app_id = 'Not defined'; 191 | } 192 | $ratings_context = explode(' ',pq('.ratings')->attr('title')); 193 | if(isset($ratings_context[1])){$ratings = $ratings_context[1];}else{$ratings = 'Not defined';} 194 | if(!empty($app_id) && $app_id != 'Not defined') 195 | { 196 | $grossing_apps[] = (object) array('app_title' => $app_title,'app_icon' => $icon,'app_author' => $app_author,'app_snippet' => $app_snippet,'app_price' => $app_price, 197 | 'app_play_store_link' => $app_play_store_link,'app_id' => $app_id,'app_ratings' => $ratings); 198 | } 199 | } 200 | return $grossing_apps; 201 | } 202 | else 203 | { 204 | return 0; 205 | } 206 | } 207 | 208 | function topNewPaidApps($start = 1){ 209 | $start = $start - 1; 210 | $start = $start * 24; 211 | $page_url = 'https://play.google.com/store/apps/collection/topselling_new_paid?start='.$start.'&num=24'; 212 | $elements_to_look = 'snippet-list'; 213 | $this_content = $this->get_fcontent($page_url); 214 | if(isset($this_content[0])){ 215 | phpQuery::newDocumentHTML($this_content[0]); 216 | $error_found = pq("#error-section")->text(); 217 | if($error_found == "We're sorry, the requested URL was not found on this server.") 218 | { 219 | return 0; 220 | } 221 | 222 | $list_items = pq('.'.$elements_to_look.' > li'); 223 | $break_all_items = explode('
  • ',$list_items); 224 | $break_all_items = str_replace('
  • ','',$break_all_items); 225 | foreach($break_all_items as $li) 226 | { 227 | phpQuery::newDocument($li); 228 | $icon = pq('img')->attr('src'); 229 | $app_title = pq('.details > div > a.title')->html(); 230 | $app_author = pq('.attribution > div > a')->html(); 231 | $app_snippet = pq('.snippet-content')->html(); 232 | $app_price = pq('.buy-button-price')->text(); 233 | if($app_price == 'Install') { $app_price = 'Free'; } 234 | // external links 235 | $app_play_store_link = $this->base_store_url.''.pq('.details > div > a.title')->attr('href'); 236 | $app_id_context = explode('?id=',$app_play_store_link); 237 | if(isset($app_id_context[1])) 238 | { 239 | $app_id_context = explode('&',$app_id_context[1]); 240 | $app_id = $app_id_context[0]; 241 | } 242 | else 243 | { 244 | $app_id = 'Not defined'; 245 | } 246 | $ratings_context = explode(' ',pq('.ratings')->attr('title')); 247 | if(isset($ratings_context[1])){$ratings = $ratings_context[1];}else{$ratings = 'Not defined';} 248 | if(!empty($app_id) && $app_id != 'Not defined') 249 | { 250 | $new_paid_apps[] = (object) array('app_title' => $app_title,'app_icon' => $icon,'app_author' => $app_author,'app_snippet' => $app_snippet,'app_price' => $app_price, 251 | 'app_play_store_link' => $app_play_store_link,'app_id' => $app_id,'app_ratings' => $ratings); 252 | } 253 | } 254 | return $new_paid_apps; 255 | } 256 | else 257 | { 258 | return 0; 259 | } 260 | } 261 | 262 | function topNewFreeApps($start = 1){ 263 | $start = $start - 1; 264 | $start = $start * 24; 265 | $page_url = 'https://play.google.com/store/apps/collection/topselling_new_free?start='.$start.'&num=24'; 266 | $elements_to_look = 'snippet-list'; 267 | $this_content = $this->get_fcontent($page_url); 268 | if(isset($this_content[0])){ 269 | phpQuery::newDocumentHTML($this_content[0]); 270 | $error_found = pq("#error-section")->text(); 271 | if($error_found == "We're sorry, the requested URL was not found on this server.") 272 | { 273 | return 0; 274 | } 275 | 276 | $list_items = pq('.'.$elements_to_look.' > li'); 277 | $break_all_items = explode('
  • ',$list_items); 278 | $break_all_items = str_replace('
  • ','',$break_all_items); 279 | foreach($break_all_items as $li) 280 | { 281 | phpQuery::newDocument($li); 282 | $icon = pq('img')->attr('src'); 283 | $app_title = pq('.details > div > a.title')->html(); 284 | $app_author = pq('.attribution > div > a')->html(); 285 | $app_snippet = pq('.snippet-content')->html(); 286 | $app_price = pq('.buy-button-price')->text(); 287 | if($app_price == 'Install') { $app_price = 'Free'; } 288 | // external links 289 | $app_play_store_link = $this->base_store_url.''.pq('.details > div > a.title')->attr('href'); 290 | $app_id_context = explode('?id=',$app_play_store_link); 291 | if(isset($app_id_context[1])) 292 | { 293 | $app_id_context = explode('&',$app_id_context[1]); 294 | $app_id = $app_id_context[0]; 295 | } 296 | else 297 | { 298 | $app_id = 'Not defined'; 299 | } 300 | $ratings_context = explode(' ',pq('.ratings')->attr('title')); 301 | if(isset($ratings_context[1])){$ratings = $ratings_context[1];}else{$ratings = 'Not defined';} 302 | if(!empty($app_id) && $app_id != 'Not defined') 303 | { 304 | $new_free_apps[] = (object) array('app_title' => $app_title,'app_icon' => $icon,'app_author' => $app_author,'app_snippet' => $app_snippet,'app_price' => $app_price, 305 | 'app_play_store_link' => $app_play_store_link,'app_id' => $app_id,'app_ratings' => $ratings); 306 | } 307 | } 308 | return $new_free_apps; 309 | } 310 | else 311 | { 312 | return 0; 313 | } 314 | } 315 | 316 | function topPaidGames($start = 1){ 317 | $start = $start - 1; 318 | $start = $start * 24; 319 | $page_url = 'https://play.google.com/store/apps/collection/topselling_paid_game?start='.$start.'&num=24'; 320 | $elements_to_look = 'snippet-list'; 321 | $this_content = $this->get_fcontent($page_url); 322 | if(isset($this_content[0])){ 323 | phpQuery::newDocumentHTML($this_content[0]); 324 | $error_found = pq("#error-section")->text(); 325 | if($error_found == "We're sorry, the requested URL was not found on this server.") 326 | { 327 | return 0; 328 | } 329 | 330 | $list_items = pq('.'.$elements_to_look.' > li'); 331 | $break_all_items = explode('
  • ',$list_items); 332 | $break_all_items = str_replace('
  • ','',$break_all_items); 333 | foreach($break_all_items as $li) 334 | { 335 | phpQuery::newDocument($li); 336 | $icon = pq('img')->attr('src'); 337 | $app_title = pq('.details > div > a.title')->html(); 338 | $app_author = pq('.attribution > div > a')->html(); 339 | $app_snippet = pq('.snippet-content')->html(); 340 | $app_price = pq('.buy-button-price')->text(); 341 | if($app_price == 'Install') { $app_price = 'Free'; } 342 | // external links 343 | $app_play_store_link = $this->base_store_url.''.pq('.details > div > a.title')->attr('href'); 344 | $app_id_context = explode('?id=',$app_play_store_link); 345 | if(isset($app_id_context[1])) 346 | { 347 | $app_id_context = explode('&',$app_id_context[1]); 348 | $app_id = $app_id_context[0]; 349 | } 350 | else 351 | { 352 | $app_id = 'Not defined'; 353 | } 354 | $ratings_context = explode(' ',pq('.ratings')->attr('title')); 355 | if(isset($ratings_context[1])){$ratings = $ratings_context[1];}else{$ratings = 'Not defined';} 356 | if(!empty($app_id) && $app_id != 'Not defined') 357 | { 358 | $paid_games[] = (object) array('app_title' => $app_title,'app_icon' => $icon,'app_author' => $app_author,'app_snippet' => $app_snippet,'app_price' => $app_price, 359 | 'app_play_store_link' => $app_play_store_link,'app_id' => $app_id,'app_ratings' => $ratings); 360 | } 361 | } 362 | return $paid_games; 363 | } 364 | else 365 | { 366 | return 0; 367 | } 368 | } 369 | 370 | function topFreeGames($start = 1){ 371 | $start = $start - 1; 372 | $start = $start * 24; 373 | $page_url = 'https://play.google.com/store/apps/collection/topselling_free_game?start='.$start.'&num=24'; 374 | $elements_to_look = 'snippet-list'; 375 | $this_content = $this->get_fcontent($page_url); 376 | phpQuery::newDocumentHTML($this_content[0]); 377 | $error_found = pq("#error-section")->text(); 378 | if($error_found == "We're sorry, the requested URL was not found on this server.") 379 | { 380 | return 0; 381 | } 382 | if(isset($this_content[0])){ 383 | $list_items = pq('.'.$elements_to_look.' > li'); 384 | $break_all_items = explode('
  • ',$list_items); 385 | $break_all_items = str_replace('
  • ','',$break_all_items); 386 | foreach($break_all_items as $li) 387 | { 388 | phpQuery::newDocument($li); 389 | $icon = pq('img')->attr('src'); 390 | $app_title = pq('.details > div > a.title')->html(); 391 | $app_author = pq('.attribution > div > a')->html(); 392 | $app_snippet = pq('.snippet-content')->html(); 393 | $app_price = pq('.buy-button-price')->text(); 394 | if($app_price == 'Install') { $app_price = 'Free'; } 395 | // external links 396 | $app_play_store_link = $this->base_store_url.''.pq('.details > div > a.title')->attr('href'); 397 | $app_id_context = explode('?id=',$app_play_store_link); 398 | if(isset($app_id_context[1])) 399 | { 400 | $app_id_context = explode('&',$app_id_context[1]); 401 | $app_id = $app_id_context[0]; 402 | } 403 | else 404 | { 405 | $app_id = 'Not defined'; 406 | } 407 | $ratings_context = explode(' ',pq('.ratings')->attr('title')); 408 | if(isset($ratings_context[1])){$ratings = $ratings_context[1];}else{$ratings = 'Not defined';} 409 | if(!empty($app_id) && $app_id != 'Not defined') 410 | { 411 | $free_games[] = (object) array('app_title' => $app_title,'app_icon' => $icon,'app_author' => $app_author,'app_snippet' => $app_snippet,'app_price' => $app_price, 412 | 'app_play_store_link' => $app_play_store_link,'app_id' => $app_id,'app_ratings' => $ratings); 413 | } 414 | } 415 | return $free_games; 416 | } 417 | else 418 | { 419 | return 0; 420 | } 421 | } 422 | 423 | function topTrendingApps($start = 1){ 424 | $start = $start - 1; 425 | $start = $start * 24; 426 | $page_url = 'https://play.google.com/store/apps/collection/movers_shakers?start='.$start.'&num=24'; 427 | $elements_to_look = 'snippet-list'; 428 | $this_content = $this->get_fcontent($page_url); 429 | phpQuery::newDocumentHTML($this_content[0]); 430 | $error_found = pq("#error-section")->text(); 431 | if($error_found == "We're sorry, the requested URL was not found on this server.") 432 | { 433 | return 0; 434 | } 435 | if(isset($this_content[0])){ 436 | $list_items = pq('.'.$elements_to_look.' > li'); 437 | $break_all_items = explode('
  • ',$list_items); 438 | $break_all_items = str_replace('
  • ','',$break_all_items); 439 | foreach($break_all_items as $li) 440 | { 441 | phpQuery::newDocument($li); 442 | $icon = pq('img')->attr('src'); 443 | $app_title = pq('.details > div > a.title')->html(); 444 | $app_author = pq('.attribution > div > a')->html(); 445 | $app_snippet = pq('.snippet-content')->html(); 446 | $app_price = pq('.buy-button-price')->text(); 447 | if($app_price == 'Install') { $app_price = 'Free'; } 448 | // external links 449 | $app_play_store_link = $this->base_store_url.''.pq('.details > div > a.title')->attr('href'); 450 | $app_id_context = explode('?id=',$app_play_store_link); 451 | if(isset($app_id_context[1])) 452 | { 453 | $app_id_context = explode('&',$app_id_context[1]); 454 | $app_id = $app_id_context[0]; 455 | } 456 | else 457 | { 458 | $app_id = 'Not defined'; 459 | } 460 | $ratings_context = explode(' ',pq('.ratings')->attr('title')); 461 | if(isset($ratings_context[1])){$ratings = $ratings_context[1];}else{$ratings = 'Not defined';} 462 | if(!empty($app_id) && $app_id != 'Not defined') 463 | { 464 | $trending_apps[] = (object) array('app_title' => $app_title,'app_icon' => $icon,'app_author' => $app_author,'app_snippet' => $app_snippet,'app_price' => $app_price, 465 | 'app_play_store_link' => $app_play_store_link,'app_id' => $app_id,'app_ratings' => $ratings); 466 | } 467 | } 468 | return $trending_apps; 469 | } 470 | else 471 | { 472 | return 0; 473 | } 474 | } 475 | 476 | function staffPicks($start = 1){ 477 | $start = $start - 1; 478 | $start = $start * 24; 479 | $page_url = 'https://play.google.com/store/apps/collection/featured?start='.$start.'&num=24'; 480 | $elements_to_look = 'snippet-list'; 481 | $this_content = $this->get_fcontent($page_url); 482 | phpQuery::newDocumentHTML($this_content[0]); 483 | $error_found = pq("#error-section")->text(); 484 | if($error_found == "We're sorry, the requested URL was not found on this server.") 485 | { 486 | return 0; 487 | } 488 | if(isset($this_content[0])){ 489 | $list_items = pq('.'.$elements_to_look.' > li'); 490 | $break_all_items = explode('
  • ',$list_items); 491 | $break_all_items = str_replace('
  • ','',$break_all_items); 492 | foreach($break_all_items as $li) 493 | { 494 | phpQuery::newDocument($li); 495 | $icon = pq('img')->attr('src'); 496 | $app_title = pq('.details > div > a.title')->html(); 497 | $app_author = pq('.attribution > div > a')->html(); 498 | $app_snippet = pq('.snippet-content')->html(); 499 | $app_price = pq('.buy-button-price')->text(); 500 | if($app_price == 'Install') { $app_price = 'Free'; } 501 | // external links 502 | $app_play_store_link = $this->base_store_url.''.pq('.details > div > a.title')->attr('href'); 503 | $app_id_context = explode('?id=',$app_play_store_link); 504 | if(isset($app_id_context[1])) 505 | { 506 | $app_id_context = explode('&',$app_id_context[1]); 507 | $app_id = $app_id_context[0]; 508 | } 509 | else 510 | { 511 | $app_id = 'Not defined'; 512 | } 513 | $ratings_context = explode(' ',pq('.ratings')->attr('title')); 514 | if(isset($ratings_context[1])){$ratings = $ratings_context[1];}else{$ratings = 'Not defined';} 515 | if(!empty($app_id) && $app_id != 'Not defined') 516 | { 517 | $staff_picks[] = (object) array('app_title' => $app_title,'app_icon' => $icon,'app_author' => $app_author,'app_snippet' => $app_snippet,'app_price' => $app_price, 518 | 'app_play_store_link' => $app_play_store_link,'app_id' => $app_id,'app_ratings' => $ratings); 519 | } 520 | } 521 | return $staff_picks; 522 | } 523 | else 524 | { 525 | return 0; 526 | } 527 | } 528 | 529 | 530 | function staffPicksForTablet($start = 1){ 531 | $start = $start - 1; 532 | $start = $start * 24; 533 | $page_url = 'https://play.google.com/store/apps/collection/tablet_featured?start='.$start.'&num=24'; 534 | $elements_to_look = 'snippet-list'; 535 | $this_content = $this->get_fcontent($page_url); 536 | phpQuery::newDocumentHTML($this_content[0]); 537 | $error_found = pq("#error-section")->text(); 538 | if($error_found == "We're sorry, the requested URL was not found on this server.") 539 | { 540 | return 0; 541 | } 542 | if(isset($this_content[0])){ 543 | $list_items = pq('.'.$elements_to_look.' > li'); 544 | $break_all_items = explode('
  • ',$list_items); 545 | $break_all_items = str_replace('
  • ','',$break_all_items); 546 | foreach($break_all_items as $li) 547 | { 548 | phpQuery::newDocument($li); 549 | $icon = pq('img')->attr('src'); 550 | $app_title = pq('.details > div > a.title')->html(); 551 | $app_author = pq('.attribution > div > a')->html(); 552 | $app_snippet = pq('.snippet-content')->html(); 553 | $app_price = pq('.buy-button-price')->text(); 554 | if($app_price == 'Install') { $app_price = 'Free'; } 555 | // external links 556 | $app_play_store_link = $this->base_store_url.''.pq('.details > div > a.title')->attr('href'); 557 | $app_id_context = explode('?id=',$app_play_store_link); 558 | if(isset($app_id_context[1])) 559 | { 560 | $app_id_context = explode('&',$app_id_context[1]); 561 | $app_id = $app_id_context[0]; 562 | } 563 | else 564 | { 565 | $app_id = 'Not defined'; 566 | } 567 | $ratings_context = explode(' ',pq('.ratings')->attr('title')); 568 | if(isset($ratings_context[1])){$ratings = $ratings_context[1];}else{$ratings = 'Not defined';} 569 | if(!empty($app_id) && $app_id != 'Not defined') 570 | { 571 | $staff_picks_for_tablet[] = (object) array('app_title' => $app_title,'app_icon' => $icon,'app_author' => $app_author,'app_snippet' => $app_snippet,'app_price' => $app_price, 572 | 'app_play_store_link' => $app_play_store_link,'app_id' => $app_id,'app_ratings' => $ratings); 573 | } 574 | } 575 | return $staff_picks_for_tablet; 576 | } 577 | else 578 | { 579 | return 0; 580 | } 581 | } 582 | 583 | function listCategories(){ 584 | $page_url = 'https://play.google.com/store/apps/category/GAME'; 585 | $this_content = $this->get_fcontent($page_url); 586 | if(isset($this_content[0])){ 587 | phpQuery::newDocumentHTML($this_content[0]); 588 | $error_found = pq("#error-section")->text(); 589 | if($error_found == "We're sorry, the requested URL was not found on this server.") 590 | { 591 | return 0; 592 | } 593 | 594 | $initial_load = explode('',pq('#tab-body-categories > div > .padded-content3')->html()); 595 | foreach($initial_load as $filtering_elements){ 596 | phpQuery::newDocumentHTML($filtering_elements); 597 | $heading_element = pq('h2 > a')->text(); 598 | $list_items = pq('li'); 599 | $str_replace = array('
  • ','