offline: Offline Time POST API

Description Usage Arguments Value

Description

GET data from the Offline Time POST API

Usage

1
2
3
4
5
6
7
offline(
  key = get_key(),
  start_time = Sys.time() - lubridate::dminutes(5),
  end_time = 5,
  activity_name = c("Break"),
  activity_details = NULL
)

Arguments

start_time
  • A string representing the date/time the for the start of the offline time block. This should be in the format of ‘YYYY-MM-DD HH:MM:SS’, but a unix timestamp is also acceptable.

end_time
  • (or duration) Either a string representing the date/time the for the end of the offline time block, OR an integer representing the duration of the offline time block in minutes.

activity_name
  • A 255 character or shorter string containing the text that will be entered as the name of the activity (e.g. "Meeting", "Driving", "Sleeping", etc).

activity_details
  • Optional A 255 character or shorter string containing the text that will be entered as the details of the named activity.

Value

No warning if successful


yogat3ch/Rescuetime documentation built on Jan. 15, 2022, 9:06 a.m.