uploadAsset

Add a new asset to the project

var parameters = {
    ProjectId: 'STRING_VALUE', // required
    Name: 'STRING_VALUE', // required
    Data: Buffer || Stream || Binary // required
}
project.uploadAsset(parameters, function(err, data) {
    if(err) {
        console.log(err); // an error occurred
    } else { 
        console.log(data);  // successful response
    }
});

Parameters

ProjectId string Project UID
Name string Asset Identifier
Data blob Asset data.

Callback

Terms of Use | © 2017, Impossible Software, or its affiliates. All rights reserved.