@@ -43,7 +43,7 @@ var Datasets = module.exports = makeService('MapboxDatasets');
43
43
Datasets . prototype . listDatasets = function ( callback ) {
44
44
invariant ( typeof callback === 'function' , 'callback must be a function' ) ;
45
45
46
- var url = makeURL ( this , constants . API_DATASET_DATASETS , { user : this . user } ) ;
46
+ var url = makeURL ( this , constants . API_DATASET_DATASETS , { owner : this . user } ) ;
47
47
48
48
request ( url , function ( err , res ) {
49
49
callback ( err , res . body ) ;
@@ -86,7 +86,7 @@ Datasets.prototype.createDataset = function(options, callback) {
86
86
if ( options . name ) invariant ( typeof options . name === 'string' , 'options.name must be a string' ) ;
87
87
if ( options . description ) invariant ( typeof options . description === 'string' , 'options.description must be a string' ) ;
88
88
89
- var url = makeURL ( this , constants . API_DATASET_DATASETS , { user : this . user } ) ;
89
+ var url = makeURL ( this , constants . API_DATASET_DATASETS , { owner : this . user } ) ;
90
90
91
91
request
92
92
. post ( url )
@@ -122,7 +122,7 @@ Datasets.prototype.readDataset = function(dataset, callback) {
122
122
invariant ( typeof callback === 'function' , 'callback must be a function' ) ;
123
123
124
124
var url = makeURL ( this , constants . API_DATASET_DATASET , {
125
- user : this . user ,
125
+ owner : this . user ,
126
126
dataset : dataset
127
127
} ) ;
128
128
@@ -166,7 +166,7 @@ Datasets.prototype.updateDataset = function(dataset, options, callback) {
166
166
if ( options . description ) invariant ( typeof options . description === 'string' , 'options.description must be a string' ) ;
167
167
168
168
var url = makeURL ( this , constants . API_DATASET_DATASET , {
169
- user : this . user ,
169
+ owner : this . user ,
170
170
dataset : dataset
171
171
} ) ;
172
172
@@ -196,7 +196,7 @@ Datasets.prototype.deleteDataset = function(dataset, callback) {
196
196
invariant ( typeof callback === 'function' , 'callback must be a function' ) ;
197
197
198
198
var url = makeURL ( this , constants . API_DATASET_DATASET , {
199
- user : this . user ,
199
+ owner : this . user ,
200
200
dataset : dataset
201
201
} ) ;
202
202
@@ -242,7 +242,7 @@ Datasets.prototype.listFeatures = function(dataset, callback) {
242
242
invariant ( typeof callback === 'function' , 'callback must be a function' ) ;
243
243
244
244
var url = makeURL ( this , constants . API_DATASET_FEATURES , {
245
- user : this . user ,
245
+ owner : this . user ,
246
246
dataset : dataset
247
247
} ) ;
248
248
@@ -332,7 +332,7 @@ Datasets.prototype.insertFeature = function(feature, dataset, callback) {
332
332
invariant ( typeof id === 'string' , 'The GeoJSON feature\'s id must be a string' ) ;
333
333
334
334
var url = makeURL ( this , constants . API_DATASET_FEATURE , {
335
- user : this . user ,
335
+ owner : this . user ,
336
336
dataset : dataset ,
337
337
id : id
338
338
} ) ;
@@ -376,7 +376,7 @@ Datasets.prototype.readFeature = function(id, dataset, callback) {
376
376
invariant ( typeof callback === 'function' , 'callback must be a function' ) ;
377
377
378
378
var url = makeURL ( this , constants . API_DATASET_FEATURE , {
379
- user : this . user ,
379
+ owner : this . user ,
380
380
dataset : dataset ,
381
381
id : id
382
382
} ) ;
@@ -406,7 +406,7 @@ Datasets.prototype.deleteFeature = function(id, dataset, callback) {
406
406
invariant ( typeof callback === 'function' , 'callback must be a function' ) ;
407
407
408
408
var url = makeURL ( this , constants . API_DATASET_FEATURE , {
409
- user : this . user ,
409
+ owner : this . user ,
410
410
dataset : dataset ,
411
411
id : id
412
412
} ) ;
@@ -515,7 +515,7 @@ Datasets.prototype.bulkFeatureUpdate = function(put, deletes, dataset, callback)
515
515
) ;
516
516
517
517
var url = makeURL ( this , constants . API_DATASET_FEATURES , {
518
- user : this . user ,
518
+ owner : this . user ,
519
519
dataset : dataset
520
520
} ) ;
521
521
0 commit comments