public
Description: A binding for the Fire Eagle API in Python
Clone URL: git://github.com/SteveMarshall/fire-eagle-python-binding.git
Added support for _experimental_ within method.
Steven Marshall (author)
Thu Mar 06 05:19:45 -0800 2008
commit  e304fa5ea223b04eddcedf8f58f87d8067a639b4
tree    6f6e8f3d3de20ff52f4e670cb42c6cfa59a055e0
parent  5e0764e2b4d7f90204d382038370b114f1c66307
...
152
153
154
155
 
156
157
158
159
160
 
161
162
163
...
197
198
199
200
 
201
202
203
...
220
221
222
223
224
 
 
 
 
 
 
 
 
 
 
 
225
226
227
228
229
230
231
 
232
233
234
...
152
153
154
 
155
156
157
158
159
 
160
161
162
163
...
197
198
199
 
200
201
202
203
...
220
221
222
 
 
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
 
240
241
242
243
0
@@ -152,12 +152,12 @@ USER_LOCATION = 'location', {
0
     'level_name': string,
0
     'located_at': date,
0
     'name' : string,
0
- 'place_id' : string
0
+ 'place_id' : string,
0
 }
0
 
0
 USER = 'user', {
0
     'token' : string,
0
- 'location': USER_LOCATION
0
+ 'location': USER_LOCATION,
0
 }
0
 FIREEAGLE_METHODS = {
0
     # OAuth methods
0
@@ -197,7 +197,7 @@ FIREEAGLE_METHODS = {
0
     'recent': {
0
         'http_headers': None,
0
         'http_method' : 'GET',
0
- 'optional' : ['count', 'time'],
0
+ 'optional' : ['per_page', 'page', 'time'],
0
         'required' : ['token'],
0
         'returns' : USER,
0
         'url_template': API_URL_TEMPLATE,
0
@@ -220,15 +220,24 @@ FIREEAGLE_METHODS = {
0
         'url_template': API_URL_TEMPLATE,
0
     },
0
     # TODO: within method
0
- # 'within': {
0
- # }
0
+ 'within': {
0
+ 'http_headers': None,
0
+ 'http_method' : 'GET',
0
+ # HACK: woe_id is ignored if place_id is present, so neither is
0
+ # strictly 'required'. Unfortunately, calling with neither
0
+ # returns an empty list
0
+ 'optional' : ['place_id', 'woe_id'],
0
+ 'required' : ['token'],
0
+ 'returns' : USER,
0
+ 'url_template': API_URL_TEMPLATE,
0
+ }
0
 }
0
 
0
 
0
 class FireEagleException( Exception ):
0
     pass
0
 
0
-# Used as a proxy for method of the FireEagle class; when methods are called,
0
+# Used as a proxy for methods of the FireEagle class; when methods are called,
0
 # __call__ in FireEagleAccumulator is called, ultimately calling the
0
 # fireeagle_obj's callMethod()
0
 class FireEagleAccumulator:

Comments

    No one has commented yet.