Skip to content

Commit 00f7b73

Browse files
root(README): add documentation for getTemplateSVGContent method.
- fixes #135
1 parent d3f6cce commit 00f7b73

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Welcome to the Renderforest API! You can use our API to:
6464
- [Get Pluggable-Screens of the Template](#get-pluggable-screens-of-the-template)
6565
- [Get Recommended-Custom-Colors of the Template](#get-recommended-custom-colors-of-the-template)
6666
- [Get Template-Presets of the Template](#get-template-presets-of-the-template)
67+
- [Get SVG Content of the Template](#get-svg-content-of-the-template)
6768
- [Get Theme of the Template](#get-theme-of-the-template)
6869
- [Get Transitions of the Template](#get-transitions-of-the-template)
6970
* [Users API](#users-api)
@@ -861,6 +862,23 @@ Template-presets are ready-made stories created from this template to fasten you
861862
[See example](https://github.com/renderforest/renderforest-sdk-node/blob/master/examples/templates/get-template-presets.js)
862863

863864

865+
### Get SVG Content of the Template
866+
Retrieves SVG content of the template.
867+
868+
```js
869+
const Renderforest = require('@renderforest/sdk-node')
870+
871+
const payload = {
872+
templateId: 701
873+
}
874+
Renderforest.getTemplateSVGContent(payload)
875+
.then(console.log) // handle the success
876+
.catch(console.error) // handle the error
877+
```
878+
879+
[See example](https://github.com/renderforest/renderforest-sdk-node/blob/master/examples/templates/get-template-svg-content.js)
880+
881+
864882
### Get Theme of the Template
865883

866884
Retrieves theme of the template.

0 commit comments

Comments
 (0)