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

Method for calling /connect/detect-provider #421

Closed
DevStarks opened this issue Jun 6, 2023 · 1 comment · Fixed by #439
Closed

Method for calling /connect/detect-provider #421

DevStarks opened this issue Jun 6, 2023 · 1 comment · Fixed by #439

Comments

@DevStarks
Copy link

DevStarks commented Jun 6, 2023

Is your feature request related to a problem? Please describe.
It would be very helpful if this SDK implemented a method to post to the /connect/detect-provider endpoint:
https://developer.nylas.com/docs/api/v2/#post/connect/detect-provider

Describe the solution you'd like

nylas_api = 
  Nylas::API.new(app_id:, app_secret:, access_token:)
nylas_api.detect_provider #=> <provider response>

Describe alternatives you've considered
I've tried to access the http client directly via nylas_api.post and nylas_api.execute but I get a Nylas::InvalidRequest error from both.

@mrashed-dev
Copy link
Contributor

Thanks for opening the issue @DevStarks, this missing endpoint should be part of our Ruby SDK offering. We will look to add this in a future update, thanks for identifying this!

mrashed-dev added a commit that referenced this issue Dec 4, 2023
This PR adds support for the /connect/detect-provider endpoint. Closes #421.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants