ad: AbAuRe-1

Logbook API

Discussion in 'QRZ XML Logbook Data' started by N1TS, Feb 18, 2021.

ad: L-HROutlet
ad: l-rl
ad: abrind-2
ad: Left-3
ad: L-MFJ
ad: Subscribe
ad: Left-2
  1. N1TS

    N1TS XML Subscriber QRZ Page

    I have been using the logbook API. It works great for INSERT, and to FETCH all of the entries in my log book.
    My issue is that I don't seem to be able to make any option work with the FETCH command.

    Here is an example of POST data:
    KEY=xxxx-xxxx-xxxx-xxxx&ACTION=FETCH&MAX:0001

    And the response is all 300 entries in my log book:
    COUNT=300&RESULT=OK&ADIF=<app_qrzlog_logid:9>589672972
    I would expect only 1 entry, since the MAX option was specified.

    I want to use the BETWEEN option, but none of the options work for me.
    I have used & ; and , between the options with no luck.

    Can anyone help with this?

    Thank you,
    Les Hildenbrandt (N1TS).
     
  2. M5RJC

    M5RJC XML Subscriber QRZ Page

    Hi Les

    You need to specify &OPTION= before the filter options so your POST message would look like

    KEY=xxxx-xxxx-xxxx-xxxx&ACTION=FETCH&OPTION=MAX:0001

    If you have multiple options they are comma separated, eg :

    KEY=xxxx-xxxx-xxxx-xxxx&ACTION=FETCH&OPTION=MAX:0001,STATUS:CONFIRMED

    Hope this helps

    Regards

    Rick
     
  3. N1TS

    N1TS XML Subscriber QRZ Page

    Thanks Rick. I hadn't had the "OPTION=". It's working now. I don't need to download my entire logbook just to print my recent SQL cards anymore.
     
  4. M5RJC

    M5RJC XML Subscriber QRZ Page

    It would be even better if there was the same option as LOTW where you can request QSO's that were QSL'd after a set date - that way you never need repeat more than 1 day's worth

    Regards

    Rick
     

Share This Page

ad: Schulman-1