Skip to contents

A two-way street to upload and download location photos [Experimental]

Usage

wt_location_photos(data, direction, dir)

Arguments

data

When going up, provide the joining data for locations and visits

direction

Either "up" or "down"; if "up" need to supply the appropriate data to join to a location and / or visit

dir

Folder of images either going "up" or "down"

Value

When "down", a folder of images

Examples

if (FALSE) { # \dontrun{
# Authenticate first:
wt_auth()
# When going up provide the folder of images and data for joining
wt_location_photos(organization = 'ABMI', data = "/my/join/table",
direction = "up", dir = "/my/dir/of/images")

# When going down the directory where you want the files only
wt_location_photos(organization = 'ABMI', direction = "down",
dir = "/my/dir/to/download/images")

} # }