Support for Hamcall.net

RUMlog, the Next Generation. Completely rewritten.
SV1DAY
Posts: 22
Joined: Sat 8. Oct 2016, 13:26

Support for Hamcall.net

Unread post by SV1DAY »

Is there any way to modify one of the 4 existing databases for callsign lookup with my preferred one? I would like to replace one of existing with Hamcall.net.

73 de SV1DAY

RUMlog-databases.png
User avatar
DL2RUM
Administrator
Posts: 2788
Joined: Mon 27. Aug 2007, 13:36
Location: JO40DF

Re: Support for Hamcall.net

Unread post by DL2RUM »

Is there a public API?
73 and best dx de Tom, DL2RUM
SV1DAY
Posts: 22
Joined: Sat 8. Oct 2016, 13:26

Re: Support for Hamcall.net

Unread post by SV1DAY »

As far as I know there is a DLL and relevant information on HamCall DVD on how one can access HamCall from 3rd party program. I doubt though if there is a web services API. I have asked them... However, there is a so called "HamCall online lookup", which is a common http request to the endpoint https://hamcall.net/call plus the callsign. Example: https://hamcall.net/call/W1AW
I understand that by calling the default web browser with this URL. one have see the web page of the specified station at HamCall. Is it possible? It would be nice. Something similar to when we double click onto "call" in the "Log Station Info" window, and Safari (or whatever web browser) open a web page at qrz.com, or hamQTH.com or whatever database is selected at the top of the "Log Station Info".

Thank you es 73 de SV1DAY
SV1DAY
Posts: 22
Joined: Sat 8. Oct 2016, 13:26

Re: Support for Hamcall.net

Unread post by SV1DAY »

And their reply...

=== QUOTE ===
Hello,

We offer online lookups through a simple HTTP call where you can pass the user's callsign, HamCall password, and the callsign they want to look up, and HamCall.net will return the raw data string. Here's a sample URL:

https://hamcall.net/call?username=[USER ... m=[PROGRAM]

The parameters it needs are as follows:

USERNAME: The user's callsign, case insensitive
PASSWORD: The user's password, case insensitive
RAWLOOKUPCSV: Set this to 1 for CSV lookups. Use this or RAWOOKUP, not both.
RAWLOOKUP: Set this to 1 to return data in the same format as the HamCall DVD. Use this or RAWLOOKUPCSV, but not both.
CALLSIGN: The callsign you want to look up, case insensitive
PROGRAM: The name of your program

There are 3 possible data return scenarios. None of them have/need HTML, they are just plain text:

1. A raw string with the callsign data is returned, in CSV format
2. NOT FOUND: <callsign>
3. ERROR: <error message>

The first 2 are pretty self-explanatory. The ERROR usually indicates that the user's login was no good or they exceeded their daily lookup limit, so you'll want to return the error message to the user to help them fix the problem.

The CSV field header and field descriptions are here: https://hamcall.net/layoutcsv.txt

A HamCall.net Basic member can look up 30 callsigns a day, a Gold (paid) member can look up 1,000 per day.


73,
=== UNQUOTE ===
SV1DAY
Posts: 22
Joined: Sat 8. Oct 2016, 13:26

Re: Support for Hamcall.net

Unread post by SV1DAY »

I tried the below http call and I received the reply further below (MY_PASSWORD was replaced by my real password)

REQUEST
https://hamcall.net/call?username=SV1DA ... gram=BASIC

RESPONCE
DL2RUM, A, AZ, , , Thomas Lindner, , In der Ritzbach 30, GERMANY, , 65510 Idstein, , , 19660000, 19851015, , 20180525, , , , , , , "9X0TL, VP2ETL, VP2MUM, TX5T", , A, DL2RUM@t-online.de, "Direct or bureau, LoTW", , http://dl2rum.de, , , 00100020003000400050006000700080009006100620064006600710093008801020105011101120113012201270130013101390142014501460147014901500162006500950096040004020, , , , , , , , , , , , , , 14, 28, EU
Post Reply