Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gis-ag/microsoft-graph-mail

Package Overview
Dependencies
Maintainers
7
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gis-ag/microsoft-graph-mail

An implementation for the Microsoft Graph Mail API

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
7
Weekly downloads
 
Created
Source

Microsoft Graph Mail

an implementation for the Microsoft Graph Mail API

Install

$ npm install --save @gis-ag/microsoft-graph-mail

Usage

After you require microsoft graph mail, you can easily setup the default properties.

const MicrosoftGraphMail = require('@gis-ag/microsoft-graph-mail');

const defaults = {
  headers: {
    Authorization: 'Bearer AccessToken',
  },
};

const serviceOptions = {
  defaults,
  baseUrl: 'https://graph.microsoft.com/v1.0',
};

const service = new MicrosoftGraphMail(serviceOptions.baseUrl, serviceOptions);

In order to retrieve personal messages, simply invoke:

const query = {
  id: 'Sent', // if not provided, Inbox is used by default,
  count: true,
};

const options = {}; // additional request options

service.messagesFromFolder(query, options, (err, mailConfig) => {
  // handle error and mailConfig object
})

MailConfig contains next data:

  1. value -> list of requested messages
  2. @odata.count -> number of items in the value array.

This is a list of all valid query parameters: https://developer.microsoft.com/en-us/graph/docs/concepts/query_parameters

Note: Please do not provide $ along with query param, since that is handled by the service. Otherwise, query param will be ignored.

License

MIT © GIS AG

Keywords

FAQs

Package last updated on 04 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc