Skip to content

Instantly share code, notes, and snippets.

@badmetacoder
Created November 2, 2012 09:48
Show Gist options
  • Save badmetacoder/3999835 to your computer and use it in GitHub Desktop.
Save badmetacoder/3999835 to your computer and use it in GitHub Desktop.
mongodb-connector
PushDefinition pd = u.createPushDefinition()
pd.setOutputType('mongodb')
pd.setOutputParam('host', 'mongodb.example.com')
pd.setOutputParam('db_name', 'twitter')
pd.setOutputParam('server_level_auth.username', 'myuser')
pd.setOutputParam('server_level_auth.password', 'mypass')
pd.validate()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment