Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Free-busy for emails is not supported by the EAS provider #391

Closed
anirban-tw opened this issue Nov 18, 2022 · 1 comment
Closed

Free-busy for emails is not supported by the EAS provider #391

anirban-tw opened this issue Nov 18, 2022 · 1 comment
Assignees
Labels

Comments

@anirban-tw
Copy link

anirban-tw commented Nov 18, 2022

Bug Description
I am using nylas gem version 5.13.0 to fetch free_busy slots, getting the error Free-busy for 'emails' is not supported by the EAS provider with a Microsoft outlook email id.

To Reproduce
The code snippet used is as follows:

nylas = Nylas::API.new(
    app_id: ...,
    app_secret: ...,
    access_token: ...
)
coll = client.free_busy(emails: ['[someid]@outlook.com'], start_time: 1668784065, end_time: 1673968065)
coll.each{ |item| puts item}

the code when executed throws the following exception:

../http_client.rb:227:in `handle_anticipated_failure_mode': Free-busy for `emails` is not supported by the EAS provider. (Nylas::InvalidRequest)

Expected behavior

Should return a list of free busy slots

SDK Version:
nylas gem version 5.13.0

@anirban-tw anirban-tw added the bug label Nov 18, 2022
@mrashed-dev mrashed-dev self-assigned this Dec 16, 2022
@mrashed-dev
Copy link
Contributor

@anirban-tw Sorry for the delay, I did not see this issue come in. After further investigation it seems like this is the expected behaviour for this endpoint, please see the documentation here: https://developer.nylas.com/docs/api/#post/calendars/free-busy

Supported for:

  • Microsoft(EWS)
  • Gmail

Please let me know if you have any other questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants