Skip to content

Commit f21a61f

Browse files
committed
examples: add example for getProject() of projects API.
1 parent 0c90bdd commit f21a61f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

examples/projects/get-project.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Copyright (c) 2018-present, Renderforest, LLC.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the license found in the
6+
* LICENSE file in the root directory.
7+
*/
8+
9+
const Renderforest = require('../../src/lib/renderforest')
10+
11+
const renderforest = new Renderforest({ signKey: '<signKey>', clientId: -1 })
12+
13+
const payload = {
14+
projectId: 6154178
15+
}
16+
renderforest.getProject(payload)
17+
.then(console.log) // handle the success
18+
.catch(console.error) // handle the error

0 commit comments

Comments
 (0)