createActivity: Create an Activity

Description Usage Arguments Value Examples

Description

With this endpoint you can create a new Activity. It should have name and color. Name doesn’t have to be unique. You can also provide Integration to which Activity will belong (zei by default, which means no special Integration). You can obtain list of enabled Integrations with the function integrations.

Usage

1
2
createActivity(name = "being awesome", color = "#a1b2c3",
  integration = "zei", token, as_df = TRUE)

Arguments

name

Name of the new activity.

color

Color of the new activity.

integration

Name of the integration it should integrate with.

token

Token obtained with signIn.

as_df

If TRUE a data frame is returned, if FALSE a list is returned.

Value

A data frame or list with id, name, color, integration and deviceSide (NULL).

Examples

1
2
token <- "123456789"
createActivity(name = "being awesome", color = "#a1b2c3", integration = "zei", token, as_df = TRUE)

Steensson/timeulaR documentation built on May 12, 2019, 5:39 a.m.