Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var nuxeo = require('nuxeo');
- var client = new nuxeo.Client({
- auth: {
- username: 'Administrator',
- password: 'Administrator'
- }
- });
- client.document('/')
- .fetch(function(error, doc) {
- if (error) {
- // something went wrong
- throw error;
- }
- doc.set({ 'dc:description': 'An updated description' });
- doc.save(function(error, doc) {
- console.log('Successfully updated ' + doc.title + ' with new description: ' + doc.properties['dc:description']);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement