0.0
No commit activity in last 3 years
No release in over 3 years
A front end for the QRZ.COM Amateur Radio callsign database API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

QRZCallbook¶ ↑

This gem provides an easy object oriented front end to access Amateur Radio callsign data from the QRZ.COM online database.

It uses the QRZ XML Database Service, which requires a subscription from QRZ.COM.

The QRZ XML Database Service specification states “The data supplied by the XML port may be extended in a forwardly compatible manner. New XML elements and database objects (with their associated elements) may be transmitted at any time. It is the developers responsibility to have their program ignore any unrecognized objects and/or elements without raising an error, so long as the information received consists of properly formatted XML.”

Therefore, this gem will not attempt to list or manage individual elements of a callsign. You will need to inspect the hash to see which elements are available for any given callsign, as demonstrated in the synopsis.

This gem does not handle any management of reusing session keys at this time, although you can specify a key you have used previously when initializing, or at any time via the key accessor.

Usage¶ ↑

require "rubygems"
require "pp"
require "qrz-callbook"

qrz = QRZCallbook.new({ ‘callsign’ => ‘n8qq’, ‘username’ => ‘qrz_username’, ‘password’ => ‘qrz_password’ })

# get and inspect the basic listing

qrz.get_listing pp qrz.listing

# get and inspect biography information

qrz.get_bio pp qrz.bio

qrz.get_bio_file puts “Biography: #{qrz.bio_file}”

# get and inspect dxcc information

qrz.get_dxcc pp qrz.dxcc

# show the session information from the last call to the api

pp qrz.session

# set a new callsign and show some misc individual information

qrz.callsign = ‘w8irc’ qrz.get_listing qrz.get_dxcc

puts “Name: #{qrz.listing} #{qrz.listing}” puts “DXCC Continent: #{qrz.dxcc}”

Dependencies¶ ↑

  • xml-simple

  • A QRZ.COM subscription that includes access to the QRZ XML Database Service

See Also¶ ↑

Copyright © 2010 Brad McConahay. See LICENSE.txt for further details.