New Office REST APIs and Developer Tools for Visual Studio Update

Today, along with the Office team, we are a releasing a number of significant updates for developers building apps that interact with the Office ecosystem.

Whether you are building a mobile app that wants to connect to high-value data and services in Office 365, developing rich integration into Office experiences with a custom app for Office, or developing Cloud Business App projects that integrate with SharePoint, today's releases enable developers to connect to the Office ecosystem in new and exciting ways.

Applications are increasingly being built by composing high-value data and services together to deliver unique mobile, desktop and web experiences.  Today's Office 365 API releases let developers consume Office data and service from any application, and today's Office Developer Tools for Visual Studio and "Napa" releases let developers build new kinds of application experiences within Office apps.

Here's a few of the exciting features in today's releases – for full details check out:

Office 365 REST APIs Preview

Office 365 provides a wealth of high-value data and services for business applications.  Today, Office is exposing these data and services via a new, simple and consistent set of Office 365 REST APIs.  This release includes APIs for working with Files, Calendar, People and Mail, exposing data spanning Exchange Online, SharePoint Online, OneDrive for Business and Azure Active Directory.  

These APIs use standard OAuth and OData, making them easy to use in any development environment and from any platform.  For example, to get the email of an authenticated user via Exchange Online:

 GET https://outlook.office365.com/ews/odata/Me/Inbox/Messages HTTP/1.1 
Authorization: Bearer eyJ0eX...
Accept: application/json

This HTTP request will return the user's Inbox email messages:

 {
 "@odata.context": "https://outlook.office365.com/EWS/OData/$metadata#Me/Inbox/Messages",
 "value": [
  {
   "@odata.id": "https://outlook.office365.com/EWS/OData/Users('s@contoso.com')/Messages('...')",
   "@odata.editLink": "https://outlook.office365.com/EWS/OData/Users('s@contoso.com')/Messages('...')",
   "Id": "...",
   "ChangeKey": "...",
   "ClassName": "IPM.Note",
   "Subject": "Sent with REST",
   "BodyPreview": "This message was created and sent with the Mail REST API!",
   "Body": {
    "ContentType": "HTML",
    "Content": "This message was created and sent with the Mail REST API!"
   },
   "Importance": "Low",
   <..snip..>
  }
 ]
}

Check out the API docs and samples for details about how to use these APIs in your applications and sites.  Also check out the preview Office 365 API Tools for Visual Studio.

Apps for Office

Developers can embed custom experiences inside Office with apps for Office.  Today, several new options are being made available including PowerPoint content apps and Outlook mail apps in compose forms.  Developers can build these apps both in Visual Studio and in the updated “Napa” tools.

For example, with an Outlook compose app, you can extend the end-user's email authoring experience with a custom pane, in this case a "My Templates" pane.  

Check out the Office 365 Platform blog for more examples of the new capabilities for apps for Office, and the Visual Studio blog for details about the updated Visual Studio tools available with the Office Developer Tools for Visual Studio 2013 – March 2014 Update.

Cloud Business Apps

In Visual Studio 2013 we introduced the Cloud Business Application template for quickly building modern business applications.  Today’s release of the Office Developer Tools for Visual Studio 2013 - March 2014 Update includes features which make it easier to integrate Documents, further streamline development and support connecting to valuable enterprise data sources.  For example, you can now connect directly to enterprise data in SAP:

 

Check out the Visual Studio Blog for more details on the new features for Cloud Business Apps.

Integrating Office into your application experiences has never been easier.   Check out https://dev.office.com to get started today!

Namaste!