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())
| doc_id | Identifier for bill text document  | 
    
|---|---|
| api_key | Your LegiScan API key (see   | 
    
A list, with doc_id as the unique identifier.
legiscan_api_key,
LegiScan API manual.
For decoding the base64 encoded document, see decode_bill_text
and the related vignette.