Skip to content

Commit daceb10

Browse files
John CwiklaJohn Cwikla
John Cwikla
authored and
John Cwikla
committedMay 3, 2011
Add some information to the README about files.
Also moved some code around to make the package only contain the file needed.
1 parent 56ef925 commit daceb10

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed
 

‎README

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
These files will get you going with the Fwix geo api!
2+
3+
You can get a free API key at
4+
5+
http://developers.fwix.com
6+
7+
Included in this repository:
8+
9+
./fwix_geo_api - the fwix geo api packge
10+
./sample - a sample file to show you how to use the api
11+
./test - tests for the geo api package
12+
13+
14+
You can find or request help for any problems at:
15+
16+
https://groups.google.com/group/fwix-api
17+
18+
19+
The Fwix Team

‎fwix_geo_api/fwix_geo_sample_code.py ‎sample/fwix_geo_sample_code.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
"""
22
Testing fwix_geo API
33
"""
4+
import sys
5+
sys.path.append("../")
6+
from fwix_geo_api.fwix_geo_api import *
47

5-
from fwix_geo_api import *
6-
7-
kFWIX_API_KEY = '42a97fb59252'
8+
kFWIX_API_KEY = ''
89
kFWIX_LAT = 37.787462
910
kFWIX_LON = -122.399223
1011
kRANDOM_PLACE_UUID = '17f5fcd-3312-7a52-f551-d4e8f70dbc8a9'
@@ -87,4 +88,4 @@ def get_content_by_place(uuid, content_type):
8788

8889
print get_content_by_location(kFWIX_LAT, kFWIX_LON, kCONTENT_TYPE_STATUS_UPDATES)
8990

90-
print get_content_by_place(kRANDOM_PLACE_UUID, kCONTENT_TYPE_NEWS)
91+
print get_content_by_place(kRANDOM_PLACE_UUID, kCONTENT_TYPE_NEWS)

‎fwix_geo_api/test_fwix_geo_api.py ‎test/test_fwix_geo_api.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import unittest
2-
from fwix_geo_api import *
2+
3+
import sys
4+
sys.path.append('..')
5+
from fwix_geo_api.fwix_geo_api import *
36

47
kFWIX_API_KEY = '' # your api key
58
kFWIX_LAT = 37.787462
@@ -58,4 +61,4 @@ def test_get_content_by_place(self):
5861
content = self.fx_api.get_content_by_place(kRANDOM_PLACE_UUID,content_type)
5962

6063
if __name__ == '__main__':
61-
unittest.main()
64+
unittest.main()

0 commit comments

Comments
 (0)
Please sign in to comment.