Permalink
Browse files

slight inconsistency

  • Loading branch information...
1 parent 0673216 commit cea2918e39e2cdd068d3c3f70d277ca54822468b @johnfn johnfn committed Apr 17, 2011
Showing with 6 additions and 2 deletions.
  1. +2 −0 generic_api.py
  2. +4 −2 sba_businesses_api.py
View
@@ -82,6 +82,8 @@ def request(self, *ordered_args, **args):
if t.startswith("callback("):
t=t[t.index("(")+1:-1]
+ print self.formatted_url
+
try:
return json.loads(t)
View
@@ -9,6 +9,8 @@ def build_api_list(list, base):
return result
+
+#These are the function calls that the SBABusinessesAPI object exposes.
list = [ "by_category"
, "all_by_state"
, "by_business_type"
@@ -20,12 +22,12 @@ def build_api_list(list, base):
APIS = build_api_list(list, "http://api.sba.gov/license_permit")
-class SBABusinessesApi(GenericAPI):
+class SBABusinessesAPI(GenericAPI):
def __init__(self):
GenericAPI.__init__(self, APIS)
# Sample use of BroadbandApi
if __name__ == "__main__":
- bb = SBABusinessesApi()
+ bb = SBABusinessesAPI()
print bb.by_category("doing business as") # (Should be San Francisco)

0 comments on commit cea2918

Please sign in to comment.