Giter Site home page Giter Site logo

qrz-callbook's Introduction

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.

qrz-callbook's People

Contributors

bradmc avatar

Stargazers

 avatar  avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.