1.2.1 • Published 2 years ago

node-red-contrib-box-note v1.2.1

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
2 years ago

node-red-contrib-box-note

Features

Create collaboration Create folder Create new note box with template Create tag name Download file Get Infomation folder Upload file

Get Key

By far the more flexible way to use Box Platform is through a Custom App integration.

Custom Apps support OAuth 2.0 authentication. They allow the application to manipulate files and folders, as well as interact with tasks, legal holds, and other enterprise-level properties.

To get OAuth 2.0 authentication, follow to guideline: https://github.com/taminhhienmor/node-red-contrib-box-note/blob/master/guidelineGetKey.docx

Usage

Create collaboration

Create-collaboration

[{"id":"6686abdc.2778d4","type":"inject","z":"1d3bdf8d.565df","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":260,"y":680,"wires":[["d276bcee.dbf6c"]]},{"id":"251b4747.e93ca8","type":"debug","z":"1d3bdf8d.565df","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":680,"y":680,"wires":[]},{"id":"d276bcee.dbf6c","type":"createCollaboration","z":"1d3bdf8d.565df","box":"","property":"https://app.box.com/notes/640671630660","propertyType":"str","collaborator":"hien.taminh@mor.com.vn","role":"editor","x":440,"y":680,"wires":[["251b4747.e93ca8"]]}]

Create folder

Create-folder

[{"id":"bf42b73.2a79948","type":"inject","z":"1d3bdf8d.565df","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":260,"y":140,"wires":[["e2a22742.9d3208"]]},{"id":"af785146.3ad42","type":"debug","z":"1d3bdf8d.565df","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":680,"y":140,"wires":[]},{"id":"e2a22742.9d3208","type":"Create a Box Note","z":"1d3bdf8d.565df","box":"","filename":"Test Create Box","localFilename":"","urlTemplate":"https://app.box.com/notes/626406500456","property":"https://app.box.com/folder/108099161365","propertyType":"str","propertyTemplate":"https://app.box.com/notes/640664677053","propertyTypeTemplate":"str","x":460,"y":140,"wires":[["af785146.3ad42"]]}]

Create new note box with template

Create-note

[{"id":"bf42b73.2a79948","type":"inject","z":"1d3bdf8d.565df","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":260,"y":140,"wires":[["e2a22742.9d3208"]]},{"id":"af785146.3ad42","type":"debug","z":"1d3bdf8d.565df","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":680,"y":140,"wires":[]},{"id":"e2a22742.9d3208","type":"Create a Box Note","z":"1d3bdf8d.565df","box":"","filename":"Test Create Box","localFilename":"","property":"https://app.box.com/folder/108099161365","propertyType":"str","propertyTemplate":"https://app.box.com/notes/640664677053","propertyTypeTemplate":"str","x":460,"y":140,"wires":[["af785146.3ad42"]]}]

Create tag name

Create-tag

[{"id":"796a0baa.769a34","type":"inject","z":"1d3bdf8d.565df","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":260,"y":420,"wires":[["ae1328fb.df8e98"]]},{"id":"a95f8ae.91a9a78","type":"debug","z":"1d3bdf8d.565df","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":680,"y":420,"wires":[]},{"id":"ae1328fb.df8e98","type":"createTagName","z":"1d3bdf8d.565df","box":"","property":"https://app.box.com/folder/108099161365","propertyType":"str","tag":"tag1, tag2","x":440,"y":420,"wires":[["a95f8ae.91a9a78"]]}]

Download file

Download-file

[{"id":"9376c3d3.2c4a3","type":"inject","z":"1d3bdf8d.565df","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":257,"y":613,"wires":[["14124899.d6e477"]]},{"id":"6b5a95b2.92344c","type":"debug","z":"1d3bdf8d.565df","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":677,"y":613,"wires":[]},{"id":"14124899.d6e477","type":"downloadFile","z":"1d3bdf8d.565df","box":"","property":"https://app.box.com/notes/640664677053","propertyType":"str","filename":"testDownload","x":460,"y":614,"wires":[["6b5a95b2.92344c"]]}]

Get Infomation folder

Infomation-folder

[{"id":"88a39dac.5b916","type":"inject","z":"1d3bdf8d.565df","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":260,"y":340,"wires":[["9acb1530.fdf298"]]},{"id":"2531c2e4.71d41e","type":"debug","z":"1d3bdf8d.565df","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":680,"y":340,"wires":[]},{"id":"9acb1530.fdf298","type":"getInfoFolder","z":"1d3bdf8d.565df","box":"","property":"0","propertyType":"str","option":"true","x":440,"y":340,"wires":[["2531c2e4.71d41e"]]}]

Upload file

Upload-file

[{"id":"5afbd652.ad3d78","type":"inject","z":"1d3bdf8d.565df","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":260,"y":520,"wires":[["3ec03ba2.4773b4"]]},{"id":"20d2c8e2.58c9a8","type":"debug","z":"1d3bdf8d.565df","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":680,"y":520,"wires":[]},{"id":"3ec03ba2.4773b4","type":"uploadFile","z":"1d3bdf8d.565df","box":"","filename":"testUpload","localFilename":"testDownload","property":"https://app.box.com/folder/108099161365","propertyType":"str","x":450,"y":520,"wires":[["20d2c8e2.58c9a8"]]}]

Reference

node-red-node-box

1.1.0

2 years ago

1.0.0

2 years ago

1.2.1

2 years ago

1.1.2

2 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.23

4 years ago

0.0.21

4 years ago

0.0.22

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.16

4 years ago

0.0.18

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago