@@ -151,7 +151,7 @@ export default class Bynder {
151
151
152
152
/**
153
153
* Get all the categories.
154
- * @see {@link http://docs.bynder.apiary.io/#reference/general/ categories/list -categories|API Call }
154
+ * @see {@link http://docs.bynder.apiary.io/#reference/categories/retrieve- categories/retrieve -categories|API Call }
155
155
* @return {Promise } Categories - Returns a Promise that, when fulfilled, will either return an Array with the
156
156
* categories or an Error with the problem.
157
157
*/
@@ -171,7 +171,7 @@ export default class Bynder {
171
171
172
172
/**
173
173
* Login to retrieve OAuth credentials.
174
- * @see {@link http://docs.bynder.apiary.io/#reference/users/-deprecated-login-a-user-retrieve-coupled-oauth-credentials|API Call }
174
+ * @see {@link http://docs.bynder.apiary.io/#reference/users/-deprecated-login-a-user-retrieve-coupled-oauth-credentials/login-a-user |API Call }
175
175
* @param {Object } queryObject={} - An object containing the credentials with which the user intends to login.
176
176
* @param {String } queryObject.username - The username of the user.
177
177
* @param {String } queryObject.password - The password of the user.
@@ -199,7 +199,7 @@ export default class Bynder {
199
199
200
200
/**
201
201
* Get the request token and secret.
202
- * @see {@link http://docs.bynder.apiary.io/#reference/consumers-and-access-tokens/1-obtain-a-request-token-pair|API Call }
202
+ * @see {@link http://docs.bynder.apiary.io/#reference/consumers-and-access-tokens/1-obtain-a-request-token-pair/obtain-a-request-token-pair |API Call }
203
203
* @return {Promise } Credentials - Returns a Promise that, when fulfilled, will either return an string with the
204
204
* couple of consumer token/secret or an Error with the problem.
205
205
*/
@@ -222,6 +222,7 @@ export default class Bynder {
222
222
223
223
/**
224
224
* Get the URL to authorise the token.
225
+ * @see {@link http://docs.bynder.apiary.io/#reference/consumers-and-access-tokens/2-authorise-authenticate/authorise-&-authenticate|API Call }
225
226
* @param {String } token - The token to be authorised.
226
227
* @param {String } [callback] - The callback to which the page will be redirected after authenticating the token.
227
228
* @return {String } URL - Returns a String with the URL to the token authorisation page.
@@ -239,7 +240,7 @@ export default class Bynder {
239
240
240
241
/**
241
242
* Get the access token and secret.
242
- * @see {@link http://docs.bynder.apiary.io/#reference/consumers-and-access-tokens/3-exchange-the-request-token-pair-for-an-access-token-pair|API Call }
243
+ * @see {@link http://docs.bynder.apiary.io/#reference/consumers-and-access-tokens/3-exchange-the-request-token-pair-for-an-access-token-pair/exchange-the-request-token-pair-for-an-access-token-pair |API Call }
243
244
* @param {string } token - A string containing the authorised token provided by the API.
244
245
* @param {string } secret - A string containing the authorised secret provided by the API.
245
246
* @return {Promise } Credentials - Returns a Promise that, when fulfilled, will either return an Object with the
@@ -264,7 +265,7 @@ export default class Bynder {
264
265
265
266
/**
266
267
* Get the assets according to the parameters provided.
267
- * @see {@link http://docs.bynder.apiary.io/#reference/media/media-access /retrieve-entry-point |API Call }
268
+ * @see {@link http://docs.bynder.apiary.io/#reference/assets/asset-operations /retrieve-assets |API Call }
268
269
* @param {Object } [queryObject={}] - An object containing the parameters accepted by the API to narrow the query.
269
270
* @return {Promise } Assets - Returns a Promise that, when fulfilled, will either return an Array with the assets or
270
271
* an Error with the problem.
@@ -291,7 +292,7 @@ export default class Bynder {
291
292
292
293
/**
293
294
* Get the assets information according to the id provided.
294
- * @see {@link http://docs.bynder.apiary.io/#reference/media/retrieve- specific-media-info /retrieve-entry-point |API Call }
295
+ * @see {@link http://docs.bynder.apiary.io/#reference/assets/ specific-asset-operations /retrieve-specific-asset |API Call }
295
296
* @param {Object } queryObject - An object containing the id and the version of the desired asset.
296
297
* @param {String } queryObject.id - The id of the desired asset.
297
298
* @param {Number } [queryObject.version] - The version of the desired asset.
@@ -318,7 +319,7 @@ export default class Bynder {
318
319
319
320
/**
320
321
* Get all the assets starting from the page provided (1 by default) and incrementing according to the offset given.
321
- * @see {@link http://docs.bynder.apiary.io/#reference/media/media-access /retrieve-entry-point |API Call }
322
+ * @see {@link http://docs.bynder.apiary.io/#reference/assets/asset-operations /retrieve-assets |API Call }
322
323
* @param {Object } [queryObject={}] - An object containing the parameters accepted by the API to narrow the query.
323
324
* @return {Promise } Assets - Returns a Promise that, when fulfilled, will either return an Array with all the
324
325
* assets or an Error with the problem.
@@ -349,7 +350,7 @@ export default class Bynder {
349
350
350
351
/**
351
352
* Get the assets total according to the parameters provided.
352
- * @see {@link http://docs.bynder.apiary.io/#reference/media/media-access-with-media-count /retrieve-entry-point |API Call }
353
+ * @see {@link http://docs.bynder.apiary.io/#reference/assets/asset-operations /retrieve-assets |API Call }
353
354
* @param {Object } [queryObject={}] - An object containing the parameters accepted by the API to narrow the query.
354
355
* @return {Promise } Number - Returns a Promise that, when fulfilled, will either return the number of assets
355
356
* fitting the query or an Error with the problem.
@@ -379,7 +380,7 @@ export default class Bynder {
379
380
380
381
/**
381
382
* Edit an existing asset with the information provided.
382
- * @see {@link http://docs.bynder.apiary.io/#reference/media/edit-media/save-entry-point |API Call }
383
+ * @see {@link http://docs.bynder.apiary.io/#reference/assets/specific-asset-operations/modify-asset |API Call }
383
384
* @param {Object } object={} - An object containing the parameters accepted by the API to change in the asset.
384
385
* @param {String } object.id - The id of the desired asset.
385
386
* @return {Promise } Object - Returns a Promise that, when fulfilled, will either return an empty Object in
@@ -432,7 +433,7 @@ export default class Bynder {
432
433
433
434
/**
434
435
* Get the metaproperty information according to the id provided.
435
- * @see {@link http://docs.bynder.apiary.io/#reference/metaproperties/specific-metaproperty-operations/specific-metaproperty-info |API Call }
436
+ * @see {@link http://docs.bynder.apiary.io/#reference/metaproperties/specific-metaproperty-operations/retrieve- specific-metaproperty|API Call }
436
437
* @param {Object } queryObject={} - An object containing the id of the desired metaproperty.
437
438
* @param {String } queryObject.id - The id of the desired metaproperty.
438
439
* @return {Promise } Metaproperty - Returns a Promise that, when fulfilled, will either return an Object with the
@@ -457,7 +458,7 @@ export default class Bynder {
457
458
458
459
/**
459
460
* Save a new metaproperty in the information provided.
460
- * @see {@link http://docs.bynder.apiary.io/#reference/metaproperties/metaproperty-access/save-new -metaproperty|API Call }
461
+ * @see {@link http://docs.bynder.apiary.io/#reference/metaproperties/metaproperty-operations/create -metaproperty|API Call }
461
462
* @param {Object } object={} - An object containing the data of the new metaproperty.
462
463
* @return {Promise } Object - Returns a Promise that, when fulfilled, will either return an empty Object in
463
464
* case it's successful or an Error with the problem.
@@ -479,7 +480,7 @@ export default class Bynder {
479
480
480
481
/**
481
482
* Delete the metaproperty with the provided id.
482
- * @see {@link http://docs.bynder.apiary.io/#reference/metaproperties/specific-metaproperty-operations/remove -metaproperty|API Call }
483
+ * @see {@link http://docs.bynder.apiary.io/#reference/metaproperties/delete -metaproperty|API Call }
483
484
* @param {Object } object={} - An object containing the id of the metaproperty to be deleted.
484
485
* @param {String } object.id - The id of the metaproperty.
485
486
* @return {Promise } Object - Returns a Promise that, when fulfilled, will either return an empty Object in
@@ -505,10 +506,11 @@ export default class Bynder {
505
506
/**
506
507
* Get all the tags
507
508
* @see {@link http://docs.bynder.apiary.io/#reference/tags/tags-access/retrieve-entry-point|API Call }
509
+ * @param {Object } [queryObject={}] - An object containing the parameters accepted by the API to narrow the query.
508
510
* @return {Promise } Tags - Returns a Promise that, when fulfilled, will either return an Array with the
509
511
* tags or an Error with the problem.
510
512
*/
511
- getTags ( ) {
513
+ getTags ( queryObject ) {
512
514
if ( ! this . validURL ( ) ) {
513
515
return rejectURL ( ) ;
514
516
}
@@ -517,14 +519,16 @@ export default class Bynder {
517
519
'v4/tags/' ,
518
520
'GET' ,
519
521
this . consumerToken ,
520
- this . accessToken
522
+ this . accessToken ,
523
+ queryObject
521
524
) ;
522
525
return request . send ( ) ;
523
526
}
524
527
525
528
/**
526
529
* Get collections according to the parameters provided
527
- * @see {@link http://docs.bynder.apiary.io/#reference/tags/tags-operations-on-assets/retrieve-collections|API Call }
530
+ * @see {@link http://docs.bynder.apiary.io/#reference/collections/collection-operations/retrieve-collections|API Call }
531
+ * @param {Object } [queryObject={}] - An object containing the parameters accepted by the API to narrow the query.
528
532
* @return {Promise } Collections - Returns a Promise that, when fulfilled, will either return an Array with the
529
533
* collections or an Error with the problem.
530
534
*/
@@ -545,7 +549,7 @@ export default class Bynder {
545
549
546
550
/**
547
551
* Get the collection information according to the id provided.
548
- * @see {@link http://docs.bynder.apiary.io/#reference/tags/tags-operations-on-assets /retrieve-specific-collection|API Call }
552
+ * @see {@link http://docs.bynder.apiary.io/#reference/collections/specific-collection-operations /retrieve-specific-collection|API Call }
549
553
* @param {Object } queryObject={} - An object containing the id of the desired collection.
550
554
* @param {String } queryObject.id - The id of the desired collection.
551
555
* @return {Promise } Collection - Returns a Promise that, when fulfilled, will either return an Object with the
0 commit comments