microsoft_graph 0.0.13

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 76

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:

dependencies:
  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

example/microsoft_graph_example.dart

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 {
      print(folder);
      await printTasksInFolders(folder);
    });
  }
}

printTasksInFolders(OutlookTaskFolder folder) async {
  final FolderId folderId = SpecificFolderId(folder.id, folder.name);
  await for (var taskListInPage in getTasks(httpClient, folderId)) {
    taskListInPage.forEach(print);
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  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';
  
Version Uploaded Documentation Archive
0.0.13 Mar 13, 2019 Go to the documentation of microsoft_graph 0.0.13 Download microsoft_graph 0.0.13 archive
0.0.12 Mar 13, 2019 Go to the documentation of microsoft_graph 0.0.12 Download microsoft_graph 0.0.12 archive
0.0.11 Mar 11, 2019 Go to the documentation of microsoft_graph 0.0.11 Download microsoft_graph 0.0.11 archive
0.0.10 Mar 11, 2019 Go to the documentation of microsoft_graph 0.0.10 Download microsoft_graph 0.0.10 archive
0.0.9 Mar 11, 2019 Go to the documentation of microsoft_graph 0.0.9 Download microsoft_graph 0.0.9 archive
0.0.8 Mar 11, 2019 Go to the documentation of microsoft_graph 0.0.8 Download microsoft_graph 0.0.8 archive
0.0.7 Mar 11, 2019 Go to the documentation of microsoft_graph 0.0.7 Download microsoft_graph 0.0.7 archive
0.0.6 Mar 9, 2019 Go to the documentation of microsoft_graph 0.0.6 Download microsoft_graph 0.0.6 archive
0.0.5 Mar 9, 2019 Go to the documentation of microsoft_graph 0.0.5 Download microsoft_graph 0.0.5 archive
0.0.4 Mar 9, 2019 Go to the documentation of microsoft_graph 0.0.4 Download microsoft_graph 0.0.4 archive

All 13 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
64
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
76
Learn more about scoring.

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

  • Dart: 2.3.2
  • pana: 0.12.18

Platforms

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.

Dependencies

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.6.0
Transitive dependencies
collection 1.14.11
fixnum 0.10.9
matcher 0.12.5
meta 1.1.7
path 1.6.2
quiver 2.0.3
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