api_user_preferences | R Documentation |
Get, set, or erase a preference for the currently authenticated user (i.e. you) in a project.
api_get_my_preference(project_id, key)
api_set_my_preference(project_id, key, value)
api_del_my_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_get_me()
,
api_get_user()
,
api_search_users()
# get preference
api_get_my_preference(185, "cwd")
## Not run:
# set preference and verify it
api_get_my_preference(185, key="foo")
api_set_my_preference(185, key="foo", value="test")
api_get_my_preference(185, key="foo")
# delete preference
api_del_my_preference(185, key="foo")
api_get_my_preference(185, key="foo")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.