Permalink
Browse files

This all becomes so trivial

  • Loading branch information...
1 parent 8c3138d commit e33f38ef21d46a64f4a1c8a835eb6f8526bcfc27 @johnfn johnfn committed Apr 17, 2011
Showing with 13 additions and 2 deletions.
  1. +13 −2 license_view_api.py
View
@@ -2,10 +2,21 @@
# Simple Python wrapper around the License View API provided by the FCC.
-apis = [ ("get_licenses", "http://data.fcc.gov/api/license-view/basicSearch/getLicenses" )
+APIS = [ ("get_licenses", "http://data.fcc.gov/api/license-view/basicSearch/getLicenses" )
+ , ("get_common_names", "http://data.fcc.gov/api/license-view/licenses/getCommonNames")
+ , ("get_statuses", "http://data.fcc.gov/api/license-view/licenses/getStatuses")
+ , ("get_categories", "http://data.fcc.gov/api/license-view/licenses/getCategories")
+ , ("get_entities", "http://data.fcc.gov/api/license-view/licenses/getEntities")
+ , ("get_renewals", "http://data.fcc.gov/api/license-view/licenses/getRenewals")
+ , ("get_issued", "http://data.fcc.gov/api/license-view/licenses/getIssued")
]
+
+class LicenseViewAPI(GenericAPI):
+ def __init__(self):
+ GenericAPI.__init__(self, APIS)
+
# Sample use of BlockConversionAPI
if __name__ == "__main__":
- bc = GenericAPI(apis)
+ bc = LicenseViewAPI()
print bc.get_licenses(searchValue = "Verizon Wireless")

0 comments on commit e33f38e

Please sign in to comment.