# NOT RUN {
# First, get the attachment content which gives is the raw response
att <- rt_ticket_attachment_content(2, 1)
# Then process it directly in R
httr::content(att)
# Or write it to disk
out_path <- tempfile()
writeBin(httr::content(x, as = 'raw'), out_path)
# }
Run the code above in your browser using DataCamp Workspace