api_user_preference.Rd
Get, set, or erase a preference for the currently authenticated user (i.e. you) in a project.
api_get_user_preference(project_id, key) api_set_user_preference(project_id, key, value) api_del_user_preference(project_id, key)
project_id | internal, numeric id of the project. |
---|---|
key | string, the name (key) of the preference. Possible preferences are:
|
value | the value of the preference, when setting it. |
Note that currently setting or deleting preferences does not work
Other users:
api_users_me()
,
api_users_search()
,
api_user()
# get preference api_get_user_preference(185, "cwd")#> [1] ""if (FALSE) { # set preference and verify it api_get_user_preference(185, key="foo") api_set_user_preference(185, key="foo", value="test") api_get_user_preference(185, key="foo") # delete preference api_del_user_preference(185, key="foo") api_get_user_preference(185, key="foo") }