-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.php
53 lines (35 loc) · 1012 Bytes
/
test.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
<?php
include("flamework/lib_mock_flamework.php");
include("config.php");
loadlib("enplacify");
# http://www.flickr.com/services/apps/create/apply/
$GLOBALS['cfg']['flickr_apikey'] = '';
$to_emplacify = array(
# chowhound
"http://www.chow.com/restaurants/919858/masala-cuisine",
# dopplr
"dplr.it/eat/qhk0",
# flickr
"http://www.flickr.com/photos/cynk/5084197983/",
# foodspotting
"http://www.foodspotting.com/places/1927",
"foodspotting:place=1927",
# foursquare
"foursquare:venue=1088273",
# osm
"osm:node=357612309",
"http://www.openstreetmap.org/browse/way/4799764",
# yelp
"http://www.yelp.com/biz/smitten-ice-cream-san-francisco",
"http://www.yelp.com/biz/q20FkqFbmdOhfSEhaT5IHg",
);
foreach ($to_emplacify as $uri){
$rsp = enplacify_uri($uri);
$name = (($rsp['ok']) && ($rsp['place']['name'])) ? "({$rsp['place']['name']})" : "";
echo "{$uri} : {$rsp['ok']} $name\n";
if (! $rsp['ok']){
echo "\t{$rsp['error']}\n";
}
}
exit();
?>