nylas-python icon indicating copy to clipboard operation
nylas-python copied to clipboard

Add support for detect provider endpoint

Open mrashed-dev opened this issue 11 months ago • 1 comments

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.

mrashed-dev avatar Mar 05 '24 01:03 mrashed-dev

Codecov Report

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

:exclamation: 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 :warning:
Additional details and impacted files
@@          Coverage Diff          @@
##             v5     #354   +/-   ##
=====================================
  Coverage      ?   95.71%           
=====================================
  Files         ?       17           
  Lines         ?     1728           
  Branches      ?        0           
=====================================
  Hits          ?     1654           
  Misses        ?       74           
  Partials      ?        0           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Mar 05 '24 01:03 codecov[bot]