-
Notifications
You must be signed in to change notification settings - Fork 9
/
examples.php
62 lines (54 loc) · 1.63 KB
/
examples.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
// https://github.com/BaseMax/GooglePlayWebServiceAPI
require "google-play.php";
$google = new GooglePlay();
// Listing app details
$app=$google->parseApplication("com.bezapps.flowdiademo");
print_r($app);
// Listing available categories
$cats = $google->parseCategories();
// Listing apps in a given category
$category = 'TRAVEL_AND_LOCAL';
$apps = $google->parseCategory($category);
// Listing Charts and Latest Additions
$charts = $google->parseTopApps();
$news = $google->parseNewApps();
// Listing what Google considers "similar apps" and "other apps from this developer"
$packageName = "com.bezapps.flowdiademo";
$similar = $google->parseSimilar($packageName);
$other = $google->parseOthers($packageName);
// Searching for apps by keywords
$query = 'sms backup';
$apps = $google->parseSearch($query);
// Obtaining app permissions
$perms = $google->parsePerms($packageName)
// How to action as a crawler and find more applications?
$alphas = range('A', 'Z');
foreach($alphas as $alpha) {
$apps=$google->parseSearch($alpha);
print_r($apps);
}
// or
$alphas = range('A', 'Z');
foreach($alphas as $alpha) {
$apps=$google->parseSearch($alpha);
print_r($apps);
foreach($alphas as $alpha2) {
$apps=$google->parseSearch($alpha.$alpha2);
print_r($apps);
}
}
// It's more
$alphas = range('A', 'Z');
foreach($alphas as $alpha) {
$apps=$google->parseSearch($alpha);
print_r($apps);
foreach($alphas as $alpha2) {
$apps=$google->parseSearch($alpha.$alpha2);
print_r($apps);
foreach($alphas as $alpha3) {
$apps=$google->parseSearch($alpha.$alpha2.$alpha3);
print_r($apps);
}
}
}