Skip to content

Commit

Permalink
Merge pull request #108 from cronofy/add-response-format-to-rts
Browse files Browse the repository at this point in the history
Adds response format to RTS
  • Loading branch information
CronofyMatt committed Mar 12, 2024
2 parents 44baf01 + b4c0819 commit 410013c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [2.0.7]
* Added support for the `response_format` parameter to the `real_time_scheduling` query API [#108]

## [2.0.6]
* Added support for the `max_results` parameter to the `real_time_scheduling` query API [#107]

Expand Down Expand Up @@ -35,6 +38,7 @@
## [1.9.3]
* Add support for Element Token generation [#70]

[2.0.7]: https://github.com/cronofy/pycronofy/releases/tag/2.0.7
[2.0.6]: https://github.com/cronofy/pycronofy/releases/tag/2.0.6
[2.0.5]: https://github.com/cronofy/pycronofy/releases/tag/2.0.5
[2.0.4]: https://github.com/cronofy/pycronofy/releases/tag/2.0.4
Expand All @@ -47,6 +51,7 @@
[1.9.4]: https://github.com/cronofy/pycronofy/releases/tag/1.9.4
[1.9.3]: https://github.com/cronofy/pycronofy/releases/tag/1.9.3

[#108]: https://github.com/cronofy/pycronofy/pull/108
[#107]: https://github.com/cronofy/pycronofy/pull/107
[#105]: https://github.com/cronofy/pycronofy/pull/105
[#104]: https://github.com/cronofy/pycronofy/pull/104
Expand Down
2 changes: 1 addition & 1 deletion PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: pycronofy
Version: 2.0.6
Version: 2.0.7
Summary: Python wrapper for Cronofy
Home-page: https://github.com/cronofy/pycronofy
Author: VenueBook
Expand Down
2 changes: 1 addition & 1 deletion pycronofy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pycronofy.client import Client # noqa: F401
from pycronofy import settings
__version__ = '2.0.6'
__version__ = '2.0.7'
__name__ = 'PyCronofy'

"""
Expand Down
7 changes: 5 additions & 2 deletions pycronofy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,16 +649,17 @@ def real_time_scheduling(self,
:available_periods - A dict stating the available periods for the event
:start_interval - A Integer representing the start_interval of the event
:buffer - A dict representing the buffer for the event
:max_results - An Integer describing the maximum number of slots to calculate from the query (Optional)
:response_format - A String controlling the generation of available slots (Optional)
:param dict oauth: - A dict describing the OAuth flow required:
:scope - A String representing the scopes to ask for
within the OAuth flow
:redirect_uri - A String containing a url to redirect the
user to after completing the OAuth flow.
:scope - A String representing additional state to
be passed within the OAuth flow.
:max_results - An Integer describing the maximum number of slots to calculate from the query (Optional)
:param dict event: - A dict describing the event
:param list target_calendars: - An list of dics stating into which calendars
:param list target_calendars: - A list of dictionaries stating into which calendars
to insert the created event
:param dict :minimum_notice - A dict describing the minimum notice for a booking (Optional)
(DEPRECATED) :param string :callback_url - A String representing the URL Cronofy will notify
Expand Down Expand Up @@ -696,6 +697,8 @@ def real_time_scheduling(self,
options['available_periods'] = availability['available_periods']
if availability.get('max_results'):
options['max_results'] = availability['max_results']
if availability.get('response_format'):
options['response_format'] = availability['response_format']

args['availability'] = options

Expand Down

0 comments on commit 410013c

Please sign in to comment.