RapidAPI logo

新規登録

ログイン

Nylas Cloud

FREE
開発者 Nylas-Cloud
更新日 3ヶ月前
コミュニケーション
3.4/10
人気度
1131ms
レイテンシ
100%
正常稼働率

Nylas Cloud API Documentation

The Nylas Cloud API integrates email, calendar, and contacts into your platform . One integration connects your app with 100% of email services (IMAP, Exchange/ActiveSync, Outlook, Gmail, Yahoo, etc.), creating one unified source of data for teams to reference. Send personalized email drip campaigns at scale while reaching your customer's inbox with nearly 100% email deliverability. Track email opens, link clicks, and reply rates; or, pull team-level email data to track productivity week over week.

Nylas helps hundreds of SaaS companies streamline communications, reduce context-switching from web app to email, and act on powerful email data. Start developing by connecting and syncing up to 10 accounts for free.

全文を表示する
GETThreads
GETMessages
GETFolders
GETLabels
GETSending
GETEvents
GETCalendars
GETFiles
GETContacts
GETSearch
GETWebhooks
GETThreads

Threads are a first-class object, allowing you to build beautiful mail applications that behave the way users have come to expect. Actions like archiving or deleting can be performed on threads or individual messages. Nylas threads messages together using a variety of heuristics. On Gmail and Microsoft Exchange accounts, messages will be threaded together as close as possible to the representation in those environments. For all other providers (including generic IMAP), messages are threaded using a custom JWZ-inspired algorithm. (Open source here, for the curious.)

Authorization:

The Nylas platform uses the OAuth 2.0 protocol for simple, effective authorization. Before making API calls on behalf of a user, you need to fetch an access_token that grants you access to their email. Once you've obtained a token, you include it with Nylas API requests as the HTTP Basic Auth Username. Although although you'll immediately have access to the API once you authorize an account, it may take some time until all historical messages are synced.

ヘッダーパラメータ
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationOAUTH2
REQUIREDThe Nylas platform uses the OAuth 2.0 protocol for simple, effective authorization. Before making API calls on behalf of a user, you need to fetch an access_token that grants you access to their email. Once you've obtained a token, you include it with Nylas API requests as the HTTP Basic Auth Username. Although although you'll immediately have access to the API once you authorize an account, it may take some time until all historical messages are synced.
AuthorizationSTRING
OPTIONALaccess_token as HTTP Basic Auth username
パラメータ(Option)
viewSTRING
OPTIONAL
limitNUMBER
OPTIONALNumber of objects to return. Often defaults to 100. If set too high, requests may fail to prevent excessively large response bodies.
コードスニペット
unirest.get("https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/threads?view=Can+be+one+of+%22id%22%2C+%22count%22%2C+or+%22expanded%22.+See+Views+for+more+info.&limit=100")
.header("X-RapidAPI-Host", "nylas-cloud-nylas-cloud-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "ログインしてキーを取得")
.header("Authorization", "")
.header("Authorization", "access_token")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
サンプルレスポンス
ログイン新規登録

SDKをインストール(NodeJS)

インストール

Node.jsでUnirestを使用するには、NPMモジュールをインストールしてください。

$ npm install unirest

インストール完了後は、簡単にリクエストを行うことができるようになります。

var unirest = require('unirest');

リクエスト

unirest.get("https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/threads?view=Can+be+one+of+%22id%22%2C+%22count%22%2C+or+%22expanded%22.+See+Views+for+more+info.&limit=100")
.header("X-RapidAPI-Host", "nylas-cloud-nylas-cloud-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "ログインしてキーを取得")
.header("Authorization", "")
.header("Authorization", "access_token")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2認証
クライアントID
クライアントシークレット
OAuth2認証