Full text of bill documents returned from LegiScan API is encoded in base64. This function detects the document mime type, decodes the texts and turn it as a character vector.
decode_bill_text(bill_text)
bill_text | List object or json file containing bill text details,
returned from |
---|
A data frame of 10 columns, containing all the information returned from API query, with the decoded text attached. See decode bill text vignette for more.
get_bill_text
.
Text decoding utilizes R package readtext.