Getting started with Office 365 development - Part 1 - Setting up your environment
This article is part of a series about “Getting started with Office 365 development”.
In recent announcements from Microsoft, some key takeaways were the consolidation of technologies in the Office 365 category. Meaning that focus shifts a bit away from individual products in the cloud and into a collective umbrella. This has been known for a long time, given Microsoft’s dedication to the cloud-first approach for new features and tools. With Office 365 we now have new and updated API’s we can develop with in order to access information Exchange Calendars, E-mails, Contacts, SharePoint Lists and AD information.
As of this writing, the API’s are in Preview but updates will most likely come with a high update cadence. Microsoft have launched a new site for getting started with the new Office 365 API’s, located in the Office Dev Center, which will be an awesome resource for you to get started with Office 365 development for real.
In this article we’ll be taking a look at some practical examples of how to communicate with a few of the Office 365 services through code. More precisely using JavaScript and the oh-so amazing REST APIs. Tag along for the ride.
Please note(Updated: May 13th 2014)
As good friend and former Microsoft MVP (Now Microsoft employee) Jeremy Thake mentions in the Office blog, there are these project types with support for the Office 365 API tools:
- .NET Windows Store App
- .NET Windows Store Universal App
- Windows Form Application
- WPF Application
- ASP.NET MVC Application
- ASP.NET Web Forms Application
- Xamarin Android and iOS Applications
- Multi-device Hybrid Apps
As of the last update of the tools on May 12th and as of this writing, there’s now additional project types supported, and they are all listed in the list above.
In my series of articles about Office 365 development I will primarily focus on ASP.NET project type samples and some javascript samples to kick things off.
Configure your development environment
In order to be able to work with the APIs for Office 365, you need to install a new Visual Studio extension. The extension called “Office 365 API Tools” and should be installed on your development environment. Visual Studio 2013 is a requirement.
Download and install the package on your development environment and make sure that the extension is activated in Visual Studio:
[ I will kick things off by creating a new project called “Zimmergren.O365.MyContent“:
[
Next part is to make sure we can connect to the Office 365 API’s and play around with the tools we’ve installed to aid us in the quest for quicker and more reliable development. In order to get things started, you simply right click on your project and choose “Add” – “Connected Service…“:
[:
[ and Visual Studio 2013 with the Office 365 API Tools installed.
From that point, you simply hook up the connection to Office 365 from Visual Studio and you are good to go. Explore the world, join the adventures of Office 365 development and utilize these new API’s in any way you desire.
This concludes part 1 in this article series and should only be seen as an introduction to the Office 365 API tools to get you set up. In the future posts I’ll dig into more details about how to retrieve different data and customize your applications etc.
Enjoy!