Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit 5e09d69

Browse files
authored
Merge pull request #104 from Alfresco/development
Merge version 0.5.0
2 parents 20f07b8 + 10888f3 commit 5e09d69

File tree

20 files changed

+2235
-1506
lines changed

20 files changed

+2235
-1506
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ Alfresco JS API
66

77
_This project provides a JavaScript client API into the v1 Alfresco REST API_
88

9+
<a name="0.5.0"></a>
10+
# [0.5.0](https://github.com/Alfresco/alfresco-js-api/releases/tag/0.5.0) (25-11-2016)
11+
12+
## Fix
13+
- [Missing class in the AMD require cause wrong loading of the classes #102](https://github.com/Alfresco/alfresco-js-api/issues/102)
14+
- [add webscript post parameters and fix getFileContent #97](https://github.com/Alfresco/alfresco-js-api/issues/97)
15+
- [QueriesApi is not reported in the declaration file #100](https://github.com/Alfresco/alfresco-js-api/issues/100)
16+
17+
918
<a name="0.4.0"></a>
1019
# [0.4.0](https://github.com/Alfresco/alfresco-js-api/releases/tag/0.4.0) (11-11-2016)
1120

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ This project provides a JavaScript client API into the Alfresco REST API and Act
4747
* [Get tickets](#get-tickets)
4848
* [Events login/logout](#events-loginlogout)
4949
- [ECM](#ecm)
50+
* [Get Node content](#get-node--content)
5051
* [Get File or Folder Info](#get-file-or-folder-info)
5152
* [Get Folder Children Info](#get-folder-children-info)
5253
* [Create Folder](#create-folder)
@@ -298,6 +299,29 @@ this.alfrescoJsApi.logout().on('logout', function(){
298299
A complete list of all the ECM methods is available here : [Core API](/src/alfresco-core-rest-api).
299300
Below you can find some common examples.
300301

302+
## Get Node content
303+
304+
getFileContent(nodeId, opts)
305+
306+
>Returns the file content of the node with identifier **nodeId**.
307+
308+
###Example
309+
```javascript
310+
311+
var nodeId = '80a94ac8-3ece-47ad-864e-5d939424c47c';
312+
313+
this.alfrescoJsApi.core.nodesApi.getFileContent(nodeId).then(function(data) {
314+
fs.writeFile('./test/grass.jpg', data, function(error) {
315+
if (error) {
316+
console.error(error);
317+
return;
318+
}
319+
console.log('The file was saved!');
320+
});
321+
}, function(error) {
322+
console.error(error);
323+
});
324+
```
301325

302326
## Get File or Folder Info
303327

@@ -619,6 +643,7 @@ Name | Description
619643
**scriptArgs** |arguments to pass to Web Script
620644
**contextRoot** |path where application is deployed default value 'alfresco'
621645
**servicePath** |path where Web Script service is mapped default value 'service'
646+
**postBody** | post body
622647

623648
```javascript
624649

0 commit comments

Comments
 (0)