Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Commit b050648

Browse files
author
Christopher De Cairos
committed
Add tag and untag functions [#45]
1 parent 358b720 commit b050648

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/make-api.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,16 @@ var module = module || undefined;
456456
return this;
457457
},
458458

459+
tag: function tag( id, newTag, callback ) {
460+
this.doXHR( "PUT", this.makePrefix + id + "/tag/" + newTag, callback );
461+
return this;
462+
},
463+
464+
untag: function untag( id, deleteTag, callback ) {
465+
this.doXHR( "DELETE", this.makePrefix + id + "/tag/" + deleteTag, callback );
466+
return this;
467+
},
468+
459469
report: function report( id, maker, callback ) {
460470
this.doXHR( "PUT", this.makePrefix + "report/" + id, { maker: maker }, callback );
461471
return this;

0 commit comments

Comments
 (0)