This nodejs module to access GoodData REST API.
Based on logic in https://github.com/byrot/phpgdc
var gdc = require('../nodegdc')('name@example.com', 'gooddatapassword', 'project-code', true)
var testData = []
testData.push({'d_domains_name.nm_name': 'Company A', 'f_domains.dt_createddate_id': '2014-01-20', 'f_domains.nm_domain_url': 'company-a.com'});
testData.push({'d_domains_name.nm_name': 'Company B', 'f_domains.dt_createddate_id': '2014-01-21', 'f_domains.nm_domain_url': 'company-b.com'});
testData.push({'d_domains_name.nm_name': 'Company C', 'f_domains.dt_createddate_id': '2014-01-22', 'f_domains.nm_domain_url': 'company-c.com'});
testData.push({'d_domains_name.nm_name': 'Company D', 'f_domains.dt_createddate_id': '2014-01-23', 'f_domains.nm_domain_url': 'company-d.com'});
var constraints = { 'f_domains.dt_createddate_id': {'date': 'yyyy-MM-dd'}};
var dataSet;
gdc.login().then(function() {
dataSet = gdc.getDataSet('dataset.domains');
return dataSet.downloadConfig();
}).then(function() {
dataSet.adjustManifest({constraints: constraints, mode: 'FULL'});
return dataSet.prepareUpload(testData);
}).then(function() {
return dataSet.doETL();
}).then(function(success) { console.log(success); }, function(err) { console.log(err);});- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Licensed under the MIT License.