Skip to content

Commit

Permalink
Merge pull request #55 from cronofy/sequencing
Browse files Browse the repository at this point in the history
Added sequencing support
  • Loading branch information
stephenbinns committed Aug 17, 2018
2 parents d8e1a1c + 72bf389 commit 4624dfe
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/index.js
Expand Up @@ -143,6 +143,12 @@ cronofy.prototype.realTimeScheduling = function () {
return this._httpPost('/v1/real_time_scheduling', details.options, details.callback);
};

cronofy.prototype.realTimeSequencing = function () {
var details = this._parseArguments(arguments, ['client_id', 'client_secret']);

return this._httpPost('/v1/real_time_sequencing', details.options, details.callback);
};

cronofy.prototype.authorizeWithServiceAccount = function () {
var details = this._parseArguments(arguments, ['access_token']);

Expand All @@ -155,6 +161,12 @@ cronofy.prototype.availability = function () {
return this._httpPost('/v1/availability', details.options, details.callback);
};

cronofy.prototype.sequencedAvailability = function () {
var details = this._parseArguments(arguments, ['access_token']);

return this._httpPost('/v1/sequenced_availability', details.options, details.callback);
};

cronofy.prototype.createEvent = function () {
var details = this._parseArguments(arguments, ['access_token']);

Expand Down

0 comments on commit 4624dfe

Please sign in to comment.