The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

BM::API - Use the BM API from Perl

SYNOPSIS

Implementation of the BM API in Perl.

AUTHOR

Simon (G7RZU) <simon@gb7fr.org.uk>

METHODS

new

my($bmobj) = BrandMeister::API->new({ BM_APIKEY => '<api key>', DMRID => '<id>', });

json_response

    Returns a hash ref to the last JSON response or undef if there is none
    
    $jsonhashref = $jsonobj->json_response;

add_static_tg

    Add static TG to repeater config. 

    $res = $bmobj->add_static_tg(<timeslot>,<talkgroup>)
    

add_static_tg

    Delete static TG from repeater config. 

    $res = $bmobj->del_static_tg(<timeslot>,<talkgroup>)
    

dropdynamic

    Drop dynamic groups from timeslot
    
    $bmobj->dropdynamic(<timeslot>);