exchange_rooms 0.0.5
exchange_rooms: ^0.0.5 copied to clipboard

Getting appointments from a room on Exchange Server 2010+ using the EWS API. Simply use the email address of the room an get an array of appointments

example/example.dart

import 'package:exchange_rooms/exchange_rooms.dart';
import 'package:exchange_rooms/models/appointment.dart';
import 'package:exchange_rooms/models/connection_credentials.dart';
import 'package:flutter/material.dart';

class Example extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Exchange rooms'),
      ),
      body: FutureBuilder(
        future: ExchangeRooms(
                credentials: ConnectionCredentials(
                    username: 'administrator',
                    password: 'MyStrongPassword',
                    domain: 'domain.local',
                    serverUrl: 'https://mail.domain.com/EWS/Exchange.asmx'))
            .getAppointmentsByRoomName('room'),
        builder: (context, snapshot) {
          if (snapshot.hasData &&
              snapshot.connectionState == ConnectionState.done) {
            return Column(
              children: (snapshot.data as List<Appointment>)
                  .map((e) => ListTile(
                        title: Text(e.subject),
                        subtitle: Text(e.organizer),
                      ))
                  .toList(),
            );
          }
          return CircularProgressIndicator();
        },
      ),
    );
  }
}
1
likes
90
pub points
12%
popularity

Publisher

eloware.com

Getting appointments from a room on Exchange Server 2010+ using the EWS API. Simply use the email address of the room an get an array of appointments

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, http, xml

More

Packages that depend on exchange_rooms