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 the detect provider endpoint #548

Open
wants to merge 3 commits into
base: v6
Choose a base branch
from

Conversation

mrashed-dev
Copy link
Collaborator

Description

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

Usage

To get the provider:

const Nylas = require('nylas');

// Initialize an instance of the Nylas SDK using the client credentials
Nylas.config({
  clientId: "CLIENT_ID",
  clientSecret: "CLIENT_SECRET",
});

// Pass the email to the detect provider function
const detectProviderRes = await Nylas.detectProvider("[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 7, 2024

Codecov Report

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

Project coverage is 91.44%. Comparing base (605d691) to head (4fec930).

Files Patch % Lines
src/models/detect-provider-response.ts 45.45% 6 Missing ⚠️
src/nylas.ts 28.57% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               v6     #548      +/-   ##
==========================================
- Coverage   91.79%   91.44%   -0.36%     
==========================================
  Files          62       63       +1     
  Lines        2670     2688      +18     
  Branches      490      491       +1     
==========================================
+ Hits         2451     2458       +7     
- Misses        218      229      +11     
  Partials        1        1              

☔ 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.

None yet

2 participants