1 / 28

Introducing the Unified Communications Web API

Introducing the Unified Communications Web API. Session Objectives. Introducing the Unified Communications Web API (UCWA) UCWA Architecture Working with Web APIs Presence Instant Messaging. Agenda. Overview. Architecture. Presence. Instant Messaging.

vanya
Download Presentation

Introducing the Unified Communications Web API

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introducing the Unified Communications Web API

  2. Session Objectives • Introducing the Unified Communications Web API (UCWA) • UCWA Architecture • Working with Web APIs • Presence • Instant Messaging

  3. Agenda Overview Architecture Presence Instant Messaging Getting Started with the Unified Communications Web API

  4. Overview

  5. Overview • One API across platforms, devices, and browsers • Embrace HTTP as application layer • Built on top of UCMA • REST-like API • Presence • Group Memberships • Contacts • Privacy Relationships • Scheduled Conferences • Search • Instant Messaging

  6. Development Experience Pattern Authenticate a user against UCWA Operations happen using the user’s identity Interact with the UCWA service endpoint Make HTTP requests and handle response Follow links in response if applicable Environment Browser and language independent No browser plugin required No ActiveX dependency Lync client does not need to be running

  7. Agenda Overview Architecture Presence Instant Messaging Getting Started with the Unified Communications Web API

  8. Architecture

  9. Building Blocks Unified Communications Web API VoiceXML UCMA 4.0 Core API UCMA Server Speech API Media Stack Microsoft.Speech SIP Layer Lync Server Infrastructure

  10. UCWA Represents an API View of Lync Natively expose a Lync Server programming interface over HTTP Abstract away dealing with the SIP protocol Consistent programming interface for web and mobile clients

  11. Authenticating UCWA Requests Autodiscover • Attempt to locate Autodiscover service • Requested is redirected to OAuth endpoint to get a token OAuth Token • Provide user credentials • Token is attached to every request header • Token establishes the user’s identity

  12. Web Token

  13. Representational State Transfer (REST) Architectural pattern that sees the internet as a collection of resources available at unique locations (URLs\HREFs) Resources are nouns/things • /ucwa/applications(<applicationid>)/me is the URL of the Me resource Make HTTP requests to perform create, read, update, and delete (CRUD) operations on resources • GET /ucwa/applications(<applicationid>)/me/presence UCWA is REST-like

  14. REST - Hypermedia A response may contain links that can denote: • Resource – links between things • Capability – links that convey an action Application should check for links in the response • Only make a request to the link if it is available • Don’t hardcode URLs in request

  15. Agenda Overview Architecture Presence Instant Messaging Getting Started with the Unified Communications Web API

  16. Presence

  17. Getting a User’s Presence Request GET Me resource GET Presence resource Response Properties Availability Links Note resource Presence resource Photo resource

  18. Event Channel • Keep a channel open to handle real-time events • Changes in presence • Receive an instant message • Presence • No need to poll for changes in presence • Listen for events on the event channel • Notification can contain information about multiple events • If you receive a presence event, handle accordingly • After notification, make a call to listen to the next event

  19. Getting User Presence in UCWA

  20. Agenda Overview Architecture Presence Instant Messaging Getting Started with the Unified Communications Web API

  21. Instant Messaging

  22. Implementing Instant Messaging using UCWA

  23. UCWA Instant Messaging Implementation • Create application • POST on makeMeAvailable • POST on startMessaging • POST on sendMessage link under Messaging resource • Listen for incoming messages on the event channel • Send more messages by doing a POST on sendMessage link under Messaging resource

  24. Implementing Instant Messaging using UCWA

  25. Agenda Overview Architecture Presence Instant Messaging Getting Started with the Unified Communications Web API

  26. Key takeaways • UCWA is a new REST-like API to enable real-time communications over the web • Embrace HTTP as an application layer • Resource-oriented programming model • Simple data structures • UCWA removes browser, plugin, and programming language dependencies

  27. thank you

  28. © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

More Related