This is the API wrapper function for the getBillText operation. It returns a copy of base64 encoded bill text document, along with other information such as document date, type, MIME type etc.

get_bill_text(doc_id, api_key = legiscan_api_key())

Arguments

doc_id

Identifier for bill text document

api_key

Your LegiScan API key (see legiscan_api_key)

Value

A list, with doc_id as the unique identifier.

See also

legiscan_api_key, LegiScan API manual. For decoding the base64 encoded document, see decode_bill_text and the related vignette.