Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions examples/supports/add-supports-ticket.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Copyright (c) 2018-present, Renderforest, LLC.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory.
*/

const Renderforest = require('../../src/lib/renderforest')

const options = { signKey: 'mock-signKey', clientId: -1 }
const renderforest = new Renderforest(options)

const payload = {
message: 'I need to...',
mailType: 'Creative team',
subject: 'Some help in ..'
}
renderforest.addSupportsTicket(payload)
.then(console.log) // handle the success
.catch(console.error) // handle the error