-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgoogleflicker.api.php
More file actions
34 lines (28 loc) · 876 Bytes
/
Copy pathgoogleflicker.api.php
File metadata and controls
34 lines (28 loc) · 876 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
34
<?php
error_reporting(0);
include 'lib/Flicker/flicker.php';
include 'lib/Google/google.php';
include 'lib/Rest/rest_request.php';
include 'lib/Rest/rest_utils.php';
include 'lib/Rest/rest.php';
$rest_service = new Rest_Service();
//http://localhost/assign/googleflicker.api?service=search&engine=f&tag=puppy&datatype=xml
//http://kodehouse.com/demo/test/googleflicker.api.php?service=search&engine=f&tag=puppy&datatype=json
$data = $rest_service->processVars();
if(!empty($data) & !empty($data['d']) && !empty($data['c'])){
RestUtils::sendResponse(null,$data['d'],$data['c']);
}else{
RestUtils::sendResponse(404,null,null);
}
/*
$('#tyreCat').animate({'background-color': '#ffe1e1'});
setTimeout(changeColor('#tyreCat'), 500);
function changeColor(id){
$(id).animate({'background-color': '#ffffff'});
}
*
*
*
*
*/
?>