https://github.com/dgf/dm4client
DeepaMehta 4 client
https://github.com/dgf/dm4client
Last synced: about 1 year ago
JSON representation
DeepaMehta 4 client
- Host: GitHub
- URL: https://github.com/dgf/dm4client
- Owner: dgf
- License: other
- Created: 2012-04-29T16:58:32.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2013-03-16T21:46:39.000Z (over 13 years ago)
- Last Synced: 2025-03-24T18:12:09.273Z (over 1 year ago)
- Language: CoffeeScript
- Size: 126 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.coffee
- License: LICENSE
Awesome Lists containing this project
README
# create a client instance
client = require('./src/dm4client').create 'http://localhost:8080/'
# login in as user 'check' with password 'test'
client.login 'check', 'test', (session) ->
# open the default DeepaMehta workspace
client.openSpace 'de.workspaces.deepamehta', (workspaceId) ->
# get all data types
client.getDataTypes (dataTypes) ->
# get all topic types
client.getTypes (typeList) ->
# get all person contacts
client.getTopics 'dm4.contacts.person', (persons) ->
for person in persons
console.log person.value