Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

slight inconsistency

  • Loading branch information...
commit cea2918e39e2cdd068d3c3f70d277ca54822468b 1 parent 0673216
@johnfn johnfn authored
Showing with 6 additions and 2 deletions.
  1. +2 −0  generic_api.py
  2. +4 −2 sba_businesses_api.py
View
2  generic_api.py
@@ -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
6 sba_businesses_api.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.