Knock.Preferences (Knock v0.4.5) View Source

Knock resources for accessing preferences. Note: this module and all of the functions here are deprecated and will be removed in the next version.

Link to this section Summary

Functions

Returns the preference set for the user

Returns all of the users preference sets

Sets the entire preference set for the user

Sets the workflow preferences for the user

Sets the workflow preference for the user

Sets the channel type preferences for the user

Sets the channel type preferences for the user

Sets the workflow preference for the user

Sets the workflow preferences for the user

Link to this section Functions

Link to this function

get(client, user_id, options \\ [])

View Source
This function is deprecated. Use Users.get_preferences/3 instead.

Returns the preference set for the user

Link to this function

get_all(client, user_id)

View Source
This function is deprecated. Use Users.get_all_preferences/2 instead.

Returns all of the users preference sets

Link to this function

set(client, user_id, preferences, options \\ [])

View Source
This function is deprecated. Use Users.set_preferences/4 instead.

Sets the entire preference set for the user

Link to this function

set_categories(client, user_id, categories, options \\ [])

View Source
This function is deprecated. Use Users.set_categories_preferences/4 instead.

Sets the workflow preferences for the user

Link to this function

set_category(client, user_id, category_key, setting, options \\ [])

View Source
This function is deprecated. Use Users.set_category_preferences/5 instead.

Sets the workflow preference for the user

Link to this function

set_channel_type(client, user_id, channel_type, setting, options \\ [])

View Source
This function is deprecated. Use Users.set_channel_type_preferences/5 instead.

Sets the channel type preferences for the user

Link to this function

set_channel_types(client, user_id, channel_types, options \\ [])

View Source
This function is deprecated. Use Users.set_channel_types_preferences/4 instead.

Sets the channel type preferences for the user

Link to this function

set_workflow(client, user_id, workflow_key, setting, options \\ [])

View Source
This function is deprecated. Use Users.set_workflow_preferences/5 instead.

Sets the workflow preference for the user

Link to this function

set_workflows(client, user_id, workflows, options \\ [])

View Source
This function is deprecated. Use Users.set_workflows_preferences/4 instead.

Sets the workflow preferences for the user