Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from ryansydnor/views-publish
Browse files Browse the repository at this point in the history
Add views.publish API
  • Loading branch information
ryansydnor authored Oct 22, 2019
2 parents 9de879b + fa8c44b commit 3eb56e7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/Slack_web_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ module.exports = function(bot, config) {
'users.profile.set',
'views.open',
'views.update',
'views.push'
'views.push',
'views.publish'
];

/**
Expand Down Expand Up @@ -240,7 +241,12 @@ module.exports = function(bot, config) {
slack_api.views.push = function(options, cb) {
sanitizeOptions(options);
slack_api.callAPI('views.push', options, cb);
};
};

slack_api.views.publish = function(options, cb) {
sanitizeOptions(options);
slack_api.callAPI('views.publish', options, cb);
};

// specify that files get uploaded using multipart
slack_api.files.upload = function(options, cb) {
Expand Down

0 comments on commit 3eb56e7

Please sign in to comment.