Skip to content

Commit 2cb5dfc

Browse files
committed
doc: move project getting documentation before project updating
1 parent 1723d5c commit 2cb5dfc

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

README.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -90,22 +90,6 @@ renderforest.getProjects(payload)
9090

9191
[See example](https://github.com/renderforest/renderforest-sdk-node/blob/master/examples/projects/get-projects.js)
9292

93-
### Get a Specific Project
94-
95-
Gets a specific project.
96-
```js
97-
const Renderforest = require('@renderforest/sdk-node')
98-
99-
const renderforest = new Renderforest({ signKey: '<signKey>', clientId: -1 })
100-
101-
const payload = {
102-
projectId: 5000658
103-
}
104-
renderforest.getProject(payload)
105-
.then(console.log) // handle the success
106-
.catch(console.error) // handle the error
107-
```
108-
[See example](https://github.com/renderforest/renderforest-sdk-node/blob/master/examples/projects/get-project.js)
10993

11094
### Add Project
11195

@@ -156,6 +140,24 @@ Renderforest.getTrialProject(payload)
156140
[See example](https://github.com/renderforest/renderforest-sdk-node/blob/master/examples/projects/get-trial-project.js)
157141

158142

143+
### Get a Specific Project
144+
145+
Gets a specific project.
146+
```js
147+
const Renderforest = require('@renderforest/sdk-node')
148+
149+
const renderforest = new Renderforest({ signKey: '<signKey>', clientId: -1 })
150+
151+
const payload = {
152+
projectId: 5000658
153+
}
154+
renderforest.getProject(payload)
155+
.then(console.log) // handle the success
156+
.catch(console.error) // handle the error
157+
```
158+
[See example](https://github.com/renderforest/renderforest-sdk-node/blob/master/examples/projects/get-project.js)
159+
160+
159161
### Update the Project - partial update
160162

161163
Updates the project (partial update).

0 commit comments

Comments
 (0)