Skip to content

Instantly share code, notes, and snippets.

@fIa5h
Last active January 15, 2016 18:04
Show Gist options
  • Save fIa5h/c05eee27fab2542c0283 to your computer and use it in GitHub Desktop.
Save fIa5h/c05eee27fab2542c0283 to your computer and use it in GitHub Desktop.

#The api_console

The api console can be called from app/Console similar to this: ./cake api_console param param param

##Non user removing calls

./cake api_console "all"

This call assigns all users to the proper rooms based upon the most recent api dumps for all institutions

./cake api_console "$org_id" "$org_id"

This call assigns all users to the proper rooms based upon the most recent api dumps for only the specified org

##User removing calls

./cake api_console "$org_id" "$org_id" 1

This call assigns all users to the proper rooms based upon the most recent api dumps for only the specified org and also removes users from the system that have not been specified in the most recent api_dumps. You will be asked to confirm this action by typing 'yes' once the process begins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment