forked from styp152/KeywordTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.php
More file actions
33 lines (22 loc) · 631 Bytes
/
api.php
File metadata and controls
33 lines (22 loc) · 631 Bytes
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
<?php
/*
This script is licensed under Apache 2.0. View the license here:
http://www.apache.org/licenses/LICENSE-2.0.html
Copyright Reserved to g0g0l
Contact @ Skype : noc2spam
*/
require('bootstrap.php');
//$user = new User();
//$user->insert();
// $user->attributes = array('a1' => rand(0, 4), 'a2' => rand(0, 44), 'a5' => rand(0, 444));
//$user->insert();
$task = @$_REQUEST['task'];
switch($task){
default:
echo json_encode(array('error' => true, 'data' => 'Invalid API Method.' ));
break;
case 'getranking':
echo googleScraper::scrape(@$_GET['keyword'], array(@$_GET['url']));
break;
}
die();