Module: FccReboot::Client::Api
- Included in:
- FccReboot::Client
- Defined in:
- lib/fcc_reboot/client/api.rb
Instance Method Summary collapse
-
#broadband_test(options = {}) ⇒ Array
speed test statistics for a US County given the passed Latitude and Longitude.
-
#find_census_block(options = {}) ⇒ Hash
This API returns the US Census Bureau Census Block number (aka the 15 character FIPS Code) given a passed Latitude and Longitude.
-
#frn_getinfo(options = {}) ⇒ Hash
This API returns information about a provider by FRN number.
-
#frn_getlist(options = {}) ⇒ Hash
This API returns returns all the broadband providers in a given state, where those operators or do not operate in multiple states.
- #get_categories(options = {}) ⇒ Array
-
#get_common_names(options = {}) ⇒ Array
This API returns a list of currently known licensee names associated with a common name.
- #get_entities(options = {}) ⇒ Array
-
#get_issued(options = {}) ⇒ Array
This API returns the number of licenses that were issued by the Commission on a yearly basis.
-
#get_licenses(options = {}) ⇒ Array
his API returns high level license information including name, FRN, call sign, category, service, status, expiration date and license id, based on the search criteria passed.
-
#get_renewals(options = {}) ⇒ Array
commonName - Name of the coporation.
-
#get_spectrum_bands(options = {}) ⇒ Array
This API accepts a frequency range and returns a list of the frequency bands along with a high level description of how the band is allocated and for what uses within the 225 MHz and 3700 MHz frequency range.
-
#get_spectrum_licenses(options = {}) ⇒ Array
This API returns a high level overview of who owns spectrum across the country within the 225 MHz to 3700 MHz frequency range in radio services deemed appropriate for mobile broadband use.
-
#get_statuses(options = {}) ⇒ Array
This API returns the license counts and percent distribution by status.
Instance Method Details
#broadband_test(options = {}) ⇒ Array
speed test statistics for a US County given the passed Latitude and Longitude
16 17 18 19 20 |
# File 'lib/fcc_reboot/client/api.rb', line 16 def broadband_test(={}) .merge!({:format => "json"}) response = get('speedtest/find', ) JSON.parse(response)["SpeedTestCounty"] end |
#find_census_block(options = {}) ⇒ Hash
This API returns the US Census Bureau Census Block number (aka the 15 character FIPS Code) given a passed Latitude and Longitude. The API also returns the US State and County name associated with the Block.
33 34 35 36 37 |
# File 'lib/fcc_reboot/client/api.rb', line 33 def find_census_block(={}) .merge!({:format => "json"}) response = get('block/find', ) JSON.parse(response) end |
#frn_getinfo(options = {}) ⇒ Hash
This API returns information about a provider by FRN number.
65 66 67 68 69 |
# File 'lib/fcc_reboot/client/api.rb', line 65 def frn_getinfo(={}) .merge!({:format => "json"}) response = get('frn/getInfo', ) JSON.parse(response) end |
#frn_getlist(options = {}) ⇒ Hash
This API returns returns all the broadband providers in a given state, where those operators or do not operate in multiple states.
49 50 51 52 53 54 |
# File 'lib/fcc_reboot/client/api.rb', line 49 def frn_getlist(={}) [:multi] = [:multi] ? "Yes" : "No" .merge!({:format => "json"}) response = get('frn/getList', ) JSON.parse(response) end |
#get_categories(options = {}) ⇒ Array
226 227 228 229 230 |
# File 'lib/fcc_reboot/client/api.rb', line 226 def get_categories(={}) .merge!({:format => "json"}) response = get('license-view/licenses/getCategories', ) JSON.parse(response)["Stats"]["Stat"] end |
#get_common_names(options = {}) ⇒ Array
This API returns a list of currently known licensee names associated with a common name. commonName (Optional) limit (Optional) – Number of request rows
149 150 151 152 153 |
# File 'lib/fcc_reboot/client/api.rb', line 149 def get_common_names(={}) .merge!({:format => "json"}) response = get('license-view/licenses/getCommonNames', ) JSON.parse(response)['Stats']['Stat'] end |
#get_entities(options = {}) ⇒ Array
211 212 213 214 215 |
# File 'lib/fcc_reboot/client/api.rb', line 211 def get_entities(={}) .merge!({:format => "json"}) response = get('license-view/licenses/getEntities', ) JSON.parse(response)["Stats"]["Stat"] end |
#get_issued(options = {}) ⇒ Array
This API returns the number of licenses that were issued by the Commission on a yearly basis. The data returned includes the year and the total number of licenses issued. commonName - Name of the coporation
181 182 183 184 185 |
# File 'lib/fcc_reboot/client/api.rb', line 181 def get_issued(={}) .merge!({:format => "json"}) response = get('license-view/licenses/getIssued', ) JSON.parse(response)["Stats"]["Stat"] end |
#get_licenses(options = {}) ⇒ Array
his API returns high level license information including name, FRN, call sign, category, service, status, expiration date and license id, based on the search criteria passed. searchValue (Required) pageNum (Optional) – Default is 1. sortColumn (Optional) – Default is licName. Valid values are: licName, frn, callsign, service, status, expdate sortOrder (Optional) – Default is asc. Valid values are: asc, desc pageSize (Optional) – Default is 100.
133 134 135 136 137 |
# File 'lib/fcc_reboot/client/api.rb', line 133 def get_licenses(={}) .merge!({:format => "json"}) response = get('license-view/basicSearch/getLicenses', ) JSON.parse(response)["Licenses"]["License"] end |
#get_renewals(options = {}) ⇒ Array
commonName - Name of the coporation
196 197 198 199 200 |
# File 'lib/fcc_reboot/client/api.rb', line 196 def get_renewals(={}) .merge!({:format => "json"}) response = get('license-view/licenses/getRenewals', ) JSON.parse(response)["Stats"]["Stat"] end |
#get_spectrum_bands(options = {}) ⇒ Array
This API accepts a frequency range and returns a list of the frequency bands along with a high level description of how the band is allocated and for what uses within the 225 MHz and 3700 MHz frequency range. frequencyFrom (Optional) – If a frequency range is not provided then the API will return all spectrum bands falling within the 225 to 3700 MHz range. Both a lower and upper frequency value must be provided when entering search criteria. frequencyTo (Optional) – If a frequency range is not provided then the API will return all spectrum bands falling within the 225 to 3700 MHz range. Both a lower and upper frequency value must be provided when entering search criteria. pageNum (Optional) – Default is 1. sortColumn (Optional) – Default is lowerBand. Valid values are: lowerBand, upperBand, or desc. sortOrder (Optional) – Default is asc. Valid values are: asc, desc. pageSize (Optional) – Default value is 1000. limit (Optional) – Default value is 100. format (Optional) – Default value is xml. Valid values are: xml, json, jsonp jsonCallback (Optional) – Default value is callback.
89 90 91 92 93 |
# File 'lib/fcc_reboot/client/api.rb', line 89 def get_spectrum_bands(={}) .merge!({:format => "json"}) response = get('spectrum-view/services/advancedSearch/getSpectrumBands', ) JSON.parse(response)["SpectrumBands"]["SpectrumBand"] end |
#get_spectrum_licenses(options = {}) ⇒ Array
This API returns a high level overview of who owns spectrum across the country within the 225 MHz to 3700 MHz frequency range in radio services deemed appropriate for mobile broadband use. frequencyFrom (Optional) – If a frequency range is not provided then the API will return all spectrum bands falling within the 225 to 3700 MHz range. Both a lower and upper frequency value must be provided when entering search criteria. frequencyTo (Optional) – If a frequency range is not provided then the API will return all spectrum bands falling within the 225 to 3700 MHz range. Both a lower and upper frequency value must be provided when entering search criteria. pageNum (Optional) – Default is 1. sortColumn (Optional) – Default is lowerBand. Valid values are: lowerBand, upperBand, or desc. sortOrder (Optional) – Default is asc. Valid values are: asc, desc. pageSize (Optional) – Default value is 1000. limit (Optional) – Default value is 100. format (Optional) – Default value is xml. Valid values are: xml, json, jsonp
113 114 115 116 117 |
# File 'lib/fcc_reboot/client/api.rb', line 113 def get_spectrum_licenses(={}) .merge!({:format => "json"}) response = get('spectrum-view/services/advancedSearch/getLicenses', ) JSON.parse(response)["Licenses"]["License"] end |
#get_statuses(options = {}) ⇒ Array
This API returns the license counts and percent distribution by status. commonName (Optional) limit (Optional) – Number of request rows
165 166 167 168 169 |
# File 'lib/fcc_reboot/client/api.rb', line 165 def get_statuses(={}) .merge!({:format => "json"}) response = get('license-view/licenses/getStatuses', ) JSON.parse(response)['Stats']['Stat'] end |