Abstracts multiple APIs to give you a shared library to call against different services such as Mail, Calendar, Work Tracking.
The library has demo limits with a max of 10 calls. Purchase a full-token.
See all available methods and interfaces in the Wiki
- ✅ All communication handled directly from library
- ✅ Promise Based Methods
- ✅ Typescript Bindings
- ✅ Support for Mail, Calendar, Task and Work Tracking
- 😇 Used in Amna
import {
Integrations,
IntegrationOptions,
MailServiceType,
} from "integrations-lib"
// after successful oauth, pass in a set of access tokens.
const opts: IntegrationOptions = {
authorizers: {
Microsoft: {
apiToken: "<user access token>",
},
Google: {
apiToken: "<user access token>",
},
},
}
const integrations = new Integrations(opts, "DEMO_TOKEN")
const outlook = integrations.getMailService(MailServiceType.Microsoft)
const gmail = integrations.getMailService(MailServiceType.Google)
const draftMessage = {
to: ["integrations@getamna.com"],
cc: [],
bcc: [],
subject: "Whoa, this library works!",
body: "Hey, we just sent you and email from our awesome library!",
}
sendMail()
async function sendMail() {
// send an email
const gmailResp = await gmail.send(draftMessage)
const outlookResp = await outlook.send(draftMessage)
}
You may demo the library for free, and purchase a one-time access token for complete library usage. Read pricing
Alternate to services such as Nylas or Kloudless.
- Max 10 function calls in Calendar and Mail APIs
- Only 1 Task Service (Google, Todoist, Microsoft) at a time
This library does not provide UI for authentication to an OAuth Provider. If you purchased a token, you can purchase our OAuth Helper for Javascript that works with most 3rd party providers. See here
You can obtainin tokens from Google and Microsoft for testing
All interface definitions can be found in our Public Github Repo
Not all methods have been implemented. There may also be slight variations between two APIs. Please read the wiki.
Library supporters have the ability to open support tickets. Because we are strapped on resources, we will prioritize token purchasers first.