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"))
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") |
Post with the attachment embedded in it.