exchange_rooms 0.0.6 copy "exchange_rooms: ^0.0.6" to clipboard
exchange_rooms: ^0.0.6 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
40
pub points
0%
popularity

Publisher

verified publishereloware.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

License

MIT (LICENSE)

Dependencies

flutter, http, xml

More

Packages that depend on exchange_rooms