RapidAPI logo

新規登録

ログイン

ContextIO

FREE
開発者 raygorodskij
更新日 3ヶ月前
Email
1.4/10
人気度
407ms
レイテンシ
100%
正常稼働率

ContextIO API Documentation

Context.IOは、IMAPを21世紀にもたらす最新のスケーラブルな電子メールAPIです。

全文を表示する
POSTconnectTokensWizard
POSTcreateAccount
POSTcreateApplicationLevelWebhook
POSTcreateOauthProvider
POSTcreateSources
POSTcreateUserLevelWebhook
POSTdeleteAccount
POSTdeleteApplicationLevelWebhook
POSTdeleteOauthProvider
POSTdeleteSource
POSTdeleteUserLevelWebhook
POSTdiscoveringImapSettings
POSTdownloadFilesContents
POSTgetAccountDetails
POSTgetAllApplicationWebhooks
POSTgetAllConnectTokensForAccount
POSTgetAllConnectTokensForSource
POSTgetAllContacts
POSTgetAllFiles
POSTgetAllMessages
POSTgetAllOauthProviders
POSTgetAllSourceFolders
POSTgetAllSources
POSTgetAllUserWebhooks
POSTgetApplicationWebhookDetails
POSTgetConnectTokenDetails
POSTgetContactDetails
POSTgetFileDetails
POSTgetFilesSharedWithContact
POSTgetFolderMessages
POSTgetListMessagesExchange
POSTgetListThreadsIncludeContact
POSTgetMessage
POSTgetMessageBody
POSTgetMessageFlags
POSTgetMessageFolders
POSTgetMessageHeaders
POSTgetMessageRawSource
POSTgetMessageThread
POSTgetOauthProviderDetails
POSTgetSourceDetail
POSTgetSourceFolder
POSTgetUserWebhookDetail
POSTmoveMessage
POSTupdateApplicationLevelWebhook
POSTupdateMessage
POSTupdateMessageFlags
POSTupdateUserLevelWebhook
POSTwebhookEvent
POSTconnectTokensWizard

接続トークンは、アカウント作成を容易にするために提供する機能です。

ヘッダーパラメータ
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
必須パラメータ
consumerSecretCREDENTIALS
REQUIREDThe consumer secret from your account.
callbackUrlSTRING
REQUIREDWhen the user’s mailbox is connected to your API key, the browser will call this url (GET). This call will have a parameter called contextio_token indicating the connect_token related to this callback. You can then do a get on this connect_token to obtain details about the account and source created through that token and save that account id in your own user data.
consumerKeyCREDENTIALS
REQUIREDThe consumer key from your account.
パラメータ(Option)
sourceSyncFoldersSELECT
OPTIONALBy default, we filter out some folders like 'Deleted Items’ and 'Drafts’. Set this parameter to `All`,`Trash` to show the 'Deleted Items’ folder.
lastNameSTRING
OPTIONALLast name of the account holder.
emailSTRING
OPTIONALThe email address of the account to be added. If specified, the first step of the connect UI where users are prompted for their email address, first name and last name is skipped.
statusCallbackUrlSTRING
OPTIONALIf specified, we’ll make a POST request to this URL if the connection status of the source changes.
sourceExpungeOnDeletedFlagSELECT
OPTIONALBy default, we don’t filter out messages flagged as deleted. Set this parameter to `on` to turn on this filtering.
firstNameSTRING
OPTIONALFirst name of the account holder.
sourceSyncAllFoldersSELECT
OPTIONALBy default, we filter out some folders like ‘Deleted Items’ and 'Drafts’. Set this parameter to `off` to turn off this filtering and show every single folder.
sourceCallbackUrlSTRING
OPTIONALIf specified, we’ll make a POST request to this URL when the initial sync is completed.
sourceRawFileListSELECT
OPTIONALBy default, we filter out files like signature images or those winmail.dat files form the files list. Set this parameter to 1 to turn off this filtering and show every single file attachments.
コードスニペット
unirest.post("https://ContextIOraygorodskijV1.p.rapidapi.com/connectTokensWizard")
.header("X-RapidAPI-Host", "ContextIOraygorodskijV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "ログインしてキーを取得")
.header("Content-Type", "application/x-www-form-urlencoded")
.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.post("https://ContextIOraygorodskijV1.p.rapidapi.com/connectTokensWizard")
.header("X-RapidAPI-Host", "ContextIOraygorodskijV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "ログインしてキーを取得")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2認証
クライアントID
クライアントシークレット
OAuth2認証