You are previewing Programming Microsoft Office 365: Covers Microsoft Graph, Office 365 applications, SharePoint Add-ins, Office 365 Groups, and more.
O'Reilly logo
Programming Microsoft Office 365: Covers Microsoft Graph, Office 365 applications, SharePoint Add-ins, Office 365 Groups, and more

Book Description

Leverage Office 365 data and services in powerful custom solutions

Learn how to develop custom solutions that access and interact with Office 365 data from your own apps on practically any mobile, web, or desktop platform. Paolo Pialorsi offers practical, code-rich coverage of every key aspect of Office 365 development, walking you through building a complete start-to-finish solution. You’ll learn how to use the new Microsoft Graph API to integrate users’ mail, calendars, contacts, groups, files, folders, and more. Leveraging Microsoft APIs at the REST level, you’ll discover how to create Office 365 solutions for Windows Universal, iOS, or Android devices and target nearly any other modern platform.

Top Microsoft developer Paolo Pialorsi shows you how to

  • Understand the Office 365 ecosystem from functional and developer perspectives

  • Set up your Office 365 development environment

  • Develop Office 365 applications, Office Add-ins, and SharePoint Add-ins

  • Invoke Microsoft Graph API endpoints from any platform via bare HTTP requests

  • Authenticate users against online tenants with Microsoft Azure Active Directory

  • Use Mail services to manage Microsoft Exchange Online mailboxes

  • Browse, create, update, and manage Office 365 Groups

  • Use File services to consume and manage files on Microsoft OneDrive for Business

  • Make the most of the Microsoft Graph SDK for .NET

  • Manage common tasks via the SharePoint REST API

  • Create and publish Office 365 applications and add-ins

  • In addition, this book is part of the Current Book Service from Microsoft Press. Books in this program will receive periodic updates to address significant software changes for 12 to 18 months following the original publication date via a free Web Edition. Learn more at https://www.microsoftpressstore.com/cbs.

    Table of Contents

    1. Cover
    2. Title Page
    3. Copyright Page
    4. Dedication Page
    5. Contents at a glance
    6. Table of Contents
    7. Introduction
      1. Who should read this book
        1. Assumptions
      2. This book might not be for you if . . .
      3. Organization of this book
        1. Finding your best starting point in this book
      4. Conventions and features in this book
      5. System requirements
      6. Downloads
        1. Installing the code samples
        2. Using the code samples
      7. Current Book Service
        1. How to register your book
        2. Find out about updates
      8. Acknowledgments
      9. Errata, updates, & book support
      10. Free ebooks from Microsoft Press
      11. We want to hear from you
      12. Stay in touch
    8. Part I: Getting started
      1. Chapter 1. Microsoft Office 365: A quick tour
        1. What is Microsoft Office 365?
          1. Microsoft Office 365 services
          2. Microsoft Office on PC/Mac and Click-to-Run
        2. Licensing and subscription plans
        3. Administration in Office 365
          1. The new Office 365 Admin Center
          2. The classic Office 365 Admin Center
        4. Summary
      2. Chapter 2. Overview of Office 365 development
        1. Setting up your development environment
          1. Setting up an Office 365 developer tenant
          2. Configuring your development machine
          3. Office 365 Developer Patterns & Practices tools
          4. Preparing for the SharePoint Framework
        2. Office 365 applications development
          1. Web applications
          2. Native applications
          3. Office 365 Connectors
        3. SharePoint online development
          1. SharePoint Add-ins
          2. Remote timer jobs for SharePoint
          3. Remote event receivers
          4. Remote provisioning
        4. Office client development
        5. Summary
    9. Part II: Office 365 programming model
      1. Chapter 3. Microsoft Graph API reference
        1. What is the Microsoft Graph API?
          1. Microsoft Graph API metadata
        2. Consuming users and security groups
          1. Yourself and other users
          2. Security groups
        3. Consuming mail, contacts, and calendars
          1. Mail messages
          2. Contacts
          3. Calendars and events
          4. Event invitations
        4. Consuming OneDrive for Business
          1. Querying files and folders
          2. Managing files and folders
          3. Searching within a drive
          4. Sharing files and folders
        5. Working with Office 365 Groups
        6. Summary
      2. Chapter 4. Azure Active Directory and security
        1. Introducing Azure Active Directory
          1. Identities in Azure AD
          2. Managing Office 365 identities
        2. Configuring apps and services in Azure AD
          1. Manual configuration
          2. Multitenancy
          3. Using Microsoft Visual Studio
        3. Understanding OpenID Connect and OAuth 2.0
          1. The OpenID Connect communication flow
          2. Under the cover of OpenID Connect and OAuth 2.0
        4. Active Directory Authentication Library
          1. Using ADAL in an ASP.NET MVC web application
        5. Summary
    10. Part III: Consuming Office 365
      1. Chapter 5. Mail, calendar, and contact services
        1. Setting up the environment
        2. Mail services
          1. Reading folders, messages, and attachments
          2. Sending an email message
          3. Reply, reply all, and forward email messages
        3. Calendar services
          1. Reading calendars and events
          2. Browsing calendar views
          3. Managing series of events
          4. Creating and updating events
          5. Managing invitations for meeting requests
        4. Contact services
          1. Reading contacts
          2. Managing contacts
        5. Summary
      2. Chapter 6. Users and Groups services
        1. Users services
          1. Reading users
        2. Groups services
          1. Browsing groups
          2. Managing groups
          3. Managing group membership
        3. Office 365 Groups services
          1. Querying Office 365 Groups
          2. Office 365 Groups capabilities
          3. Creating or updating Office 365 Groups
        4. Summary
      3. Chapter 7. File services
        1. Working with drives, files, and folders
          1. Browsing for files and folders
          2. Consuming files
          3. Uploading and updating files
        2. Permissions and sharing
          1. Managing files permissions
          2. Sharing a file
        3. Summary
      4. Chapter 8. Microsoft Graph SDK for .NET
        1. Introduction to the Microsoft Graph SDK
          1. Registering the app and using the SDK
          2. Request model
        2. Querying resources
          1. Basic query operations
          2. Handling paging of collections
        3. Managing resources
          1. Adding a resource to a collection
          2. Updating a resource
          3. Deleting a resource
          4. Handling exceptions and concurrency
        4. Real-life examples
          1. Sending an email
          2. Searching for Office 365 Groups
          3. Handling content of Office 365 Groups
          4. Managing current user’s photo
          5. Managing current user’s manager and direct reports
          6. Uploading a file to OneDrive for Business
          7. Searching for files in OneDrive for Business
          8. Downloading a file from OneDrive for Business
        5. Summary
      5. Chapter 9. SharePoint REST API
        1. Introducing the REST API
          1. API reference
          2. Querying data
          3. Managing data
          4. Cross-domain calls
          5. Security
        2. Common REST API usage
          1. Creating a new list
          2. Creating and updating a list item
          3. Deleting an existing list item
          4. Querying a list of items
          5. Creating a new document library
          6. Uploading or updating a document
          7. Checking in and checking out documents
          8. Deleting a document
          9. Querying a list of documents
        3. Summary
    11. Part IV: SharePoint and Office apps
      1. Chapter 10. Creating Office 365 applications
        1. Solution overview
        2. Creating and registering the Office 365 application
          1. Azure AD application general registration
          2. App-only authorization registration
          3. Setting Azure AD permissions
        3. Basic UI elements with Office UI Fabric
          1. Office 365 suite bar and top navigation
          2. Responsive grid
          3. Custom components and styles
        4. Extending and consuming SharePoint Online
          1. Extending the UI of SharePoint Online
          2. Provisioning SharePoint artifacts
          3. Consuming SharePoint Online with delegated permissions
        5. Using the Microsoft Graph
          1. Creating and consuming the project’s Office 365 Group
          2. Sending notifications on behalf of users
        6. Creating asynchronous jobs
          1. Remote timer job architecture
          2. Creating a remote timer job in Azure
        7. Publishing the application on Azure
          1. Publishing the Azure App Service
          2. Publishing the WebJob
        8. Office 365 Connectors
          1. Creating and registering a webhook
          2. Writing the project’s connector
        9. Summary
      2. Chapter 11. Overview of Office Add-ins
        1. Introducing Office Add-ins
          1. Tools for creating Office Add-ins
          2. Add-in manifest
        2. Creating Outlook Add-ins
          1. Add-in manifest for Outlook
          2. Your first Outlook Add-in
          3. A more realistic example
          4. Using Yeoman generator
        3. Office JavaScript APIs
        4. Creating Content and Task Pane Add-ins
        5. Summary
      3. Chapter 12. Publishing your applications and add-ins
        1. Options for publishing add-ins and web applications
          1. Private corporate publishing
          2. Office Store
          3. File share publishing
        2. Using the Seller Dashboard
          1. Publishing Office Add-ins
          2. Publishing SharePoint Add-ins
          3. Publishing Office 365 web applications
          4. Updating or deleting add-ins or Office 365 web applications
        3. Licensing model
          1. Types of licenses
          2. Checking license in code
          3. Best practices for handling licenses in code
        4. Metrics and company profile
          1. Metrics
          2. Office Profile
        5. Summary
    12. Index
    13. About the Author
    14. Survey
    15. Code Snippets