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

Add support for detect provider endpoint #354

Open
wants to merge 7 commits into
base: v5
Choose a base branch
from

Conversation

mrashed-dev
Copy link
Contributor

@mrashed-dev mrashed-dev commented Mar 5, 2024

Description

This PR adds support for the /connect/detect_provider endpint.

Usage

To get the provider:

from nylas import APIClient

# Pass the access token to the Nylas client
nylas = APIClient(
    NYLAS_CLIENT_ID,
    NYLAS_CLIENT_SECRET,
    ACCESS_TOKEN
)

# Pass the email to the detect provider function
provider = nylas.detect_provider("[email protected]")

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Copy link

codecov bot commented Mar 5, 2024

Codecov Report

Attention: Patch coverage is 16.66667% with 5 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (v5@247a70f). Click here to learn what that means.

Files Patch % Lines
nylas/client/client.py 16.66% 5 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##             v5     #354   +/-   ##
=====================================
  Coverage      ?   95.71%           
=====================================
  Files         ?       17           
  Lines         ?     1728           
  Branches      ?        0           
=====================================
  Hits          ?     1654           
  Misses        ?       74           
  Partials      ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Successfully merging this pull request may close these issues.

1 participant