Add an attachment object to a post

add_attachment(post, file, attachment_name = "My File",
  host = Sys.getenv("BASECAMP_HOST"),
  token = Sys.getenv("BASECAMP_TOKEN"))

Arguments

post

Post object to attach to (message or comment)

file

character, Path of file to attach

attachment_name

character, Name of attachment seen in post, Default: 'My File'

host

character, URL of the team, Default: Sys.getenv('BASECAMP_HOST')

token

character, Basecamp Classic API token , Default: Sys.getenv("BASECAMP_TOKEN")

Value

Post with the attachment embedded in it.