microsoft_graph 0.0.13

  • Readme
  • Changelog
  • Example
  • Installing
  • 73

A library for making Microsoft Graph requests.

This package contains a set of high-level functions and classes that make it easy to consume Microsoft Graph resources. It's platform-independent, and can be used on both the command-line and the browser.

Use this package as a library #

Depend on it #

Add this to your package's pubspec.yaml file:

  microsoft_graph: ^0.0.13
  microsoft_graph_http: ^0.0.13

Install it #

You can install packages from the command line:

with pub:

pub get

with Flutter:

flutter packages get

Import it #

Now in your Dart code, you can use:

import 'package:microsoft_graph/microsoft_graph.dart';
import 'package:microsoft_graph_http/microsoft_graph_http.dart';

0.0.1 #

  • Initial version, created by Dmytro Glynskyi


import 'package:microsoft_graph/microsoft_graph.dart';
import 'package:microsoft_graph_http/microsoft_graph_http.dart';
import 'dart:io' show Platform;

final String accessToken = Platform.environment["OAUTH_TOKEN"];
final IHttpClient httpClient = SimpleHttpClient(accessToken);

main() async {
  await for (var folderListInPage in getTaskFolders(httpClient)) {
    folderListInPage.forEach((folder) async {
      await printTasksInFolders(folder);

printTasksInFolders(OutlookTaskFolder folder) async {
  final FolderId folderId = SpecificFolderId(,;
  await for (var taskListInPage in getTasks(httpClient, folderId)) {

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  microsoft_graph: ^0.0.13

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:microsoft_graph/microsoft_graph.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 11, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:microsoft_graph/microsoft_graph.dart.

Health suggestions

Format lib/microsoft_graph.dart.

Run dartfmt to format lib/microsoft_graph.dart.

Format lib/src/api/get_attachments.dart.

Run dartfmt to format lib/src/api/get_attachments.dart.

Format lib/src/api/get_note_folders.dart.

Run dartfmt to format lib/src/api/get_note_folders.dart.

Fix additional 14 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/api/get_notes.dart (Run dartfmt to format lib/src/api/get_notes.dart.)
  • lib/src/api/get_task_folders.dart (Run dartfmt to format lib/src/api/get_task_folders.dart.)
  • lib/src/api/get_tasks.dart (Run dartfmt to format lib/src/api/get_tasks.dart.)
  • lib/src/core/authentication_provider.dart (Run dartfmt to format lib/src/core/authentication_provider.dart.)
  • lib/src/core/http_client.dart (Run dartfmt to format lib/src/core/http_client.dart.)
  • lib/src/core/http_header.dart (Run dartfmt to format lib/src/core/http_header.dart.)
  • lib/src/core/http_method.dart (Run dartfmt to format lib/src/core/http_method.dart.)
  • lib/src/core/http_provider.dart (Run dartfmt to format lib/src/core/http_provider.dart.)
  • lib/src/core/http_request_message.dart (Run dartfmt to format lib/src/core/http_request_message.dart.)
  • lib/src/core/http_response_message.dart (Run dartfmt to format lib/src/core/http_response_message.dart.)
  • lib/src/models/date_time_time_zone.dart (Run dartfmt to format lib/src/models/date_time_time_zone.dart.)
  • lib/src/models/outlook_task_folder.dart (Run dartfmt to format lib/src/models/outlook_task_folder.dart.)
  • lib/src/models/serializers.dart (Run dartfmt to format lib/src/models/serializers.dart.)
  • lib/src/serialization/date_serializer.dart (Run dartfmt to format lib/src/serialization/date_serializer.dart.)

Maintenance suggestions

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
built_collection ^4.1.0 4.2.2
built_value ^6.3.2 6.7.1
Transitive dependencies
collection 1.14.12
fixnum 0.10.9
matcher 0.12.5
meta 1.1.7
path 1.6.4
quiver 2.0.5
stack_trace 1.9.3
Dev dependencies
build_runner ^1.2.8
built_value_generator ^6.3.2
microsoft_graph_http ^0.0.13
pedantic ^1.0.0
test ^1.0.0