Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/cronofy/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,8 @@ def change_participation_status(calendar_id, event_uid, status)
# scope - Array or String of scopes describing the access to
# request from the user to the users calendars (required).
# callback_url - the url to callback to
# state - A value that will be returned to you unaltered along with the
# authorization request decision.
#
# Returns nothing
#
Expand All @@ -659,7 +661,7 @@ def change_participation_status(calendar_id, event_uid, status)
# longer valid.
# Raises Cronofy::TooManyRequestsError if the request exceeds the rate
# limits for the application.
def authorize_with_service_account(email, scope, callback_url, state)
def authorize_with_service_account(email, scope, callback_url, state=nil)
if scope.respond_to?(:join)
scope = scope.join(' ')
end
Expand Down