@@ -297,12 +297,15 @@ class Cayenne {
297
297
return this . auth . send ( this . service , 'GET' , url ) ;
298
298
}
299
299
300
- /**
300
+ /**
301
301
* Gets V2 all things data types
302
+ * @param {Object } query
303
+ * @param {Number } [query.limit]
304
+ * @param {Number } [query.page]
302
305
*/
303
- getThingDataTypesV2 ( ) {
306
+ getThingDataTypesV2 ( query ) {
304
307
const url = `${ this . url } /v2/things/datatypes` ;
305
- return this . auth . send ( this . service , 'GET' , url ) ;
308
+ return this . auth . send ( this . service , 'GET' , url , { query } ) ;
306
309
}
307
310
308
311
/**
@@ -315,10 +318,13 @@ class Cayenne {
315
318
316
319
/**
317
320
* Get V2 one things data type properties
321
+ * @param {Object } query
322
+ * @param {Number } [query.limit]
323
+ * @param {Number } [query.page]
318
324
*/
319
- getThingDataTypePropertiesV2 ( id ) {
325
+ getThingDataTypePropertiesV2 ( id , query ) {
320
326
const url = `${ this . url } /v2/things/datatypes/${ id } /properties` ;
321
- return this . auth . send ( this . service , 'GET' , url ) ;
327
+ return this . auth . send ( this . service , 'GET' , url , { query } ) ;
322
328
}
323
329
324
330
/**
0 commit comments