Skip to content

Commit

Permalink
Add social.queue.add method
Browse files Browse the repository at this point in the history
  • Loading branch information
RedGuys committed Nov 5, 2020
1 parent b312daa commit 34772b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions lib/social/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ class Queue {
});
});
}

add(socialNetwork,user,text) {
return new Promise((resolve, reject) => {
ApiRequest.mainGet("social/queue/add",this.options,{social:socialNetwork,user,text})
.catch((error) => {
reject(error);
}).then((result) => {
resolve(JSON.parse(result.response));
});
});
}
}

module.exports = Queue;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-redguy-dnevnik-api",
"version": "1.0.2",
"version": "1.0.3",
"description": "Library to use redguy dnevnik api",
"main": "lib/index.js",
"directories": {
Expand Down

0 comments on commit 34772b7

Please sign in to comment.