Add Ins Connectors REST APIs Actionable Messages Feedback Blog Code Samples Videos

Code Samples

REST Code Samples

Office 365 Connect app for iOS

Keywords: ios, swift, objective-c, mail

This Connect sample for iOS shows how to connect your app to Office 365. Once connected, the sample shows how to send a simple service call. Comes in both Swift and Objective-C.

Email Peek

Keywords: ios, objective-c, mail

Email Peek is a cool mail app built using the Office 365 APIs on the iOS platform. This app allows you to peek at just the email conversations you truly care about when you are away, such as when you are on vacation. Email Peek also makes it easy for you to send quick replies to messages without typing. This app uses many of the features of the Office 365 Mail API such as read/write, server-side filtering, and categories.

Office 365 Code Snippets for Windows

Keywords: windows, c#, mail, calendar, contacts

The Office 365 Windows Snippets project shows you how to do basic operations against the Users and Groups, Calendar, Contacts, Mail, and Files service endpoints in Office 365.

Office 365 Code Snippets for Android

Keywords: android, java, mail, calendar, contacts

A repository of code snippets that wrap the Microsoft Office 365 SDK for Android.

Office 365 Connect Sample for Android

Keywords: android, java, mail

Connecting to Office 365 is the first step every Android app must take to start working with Office 365 services and data. This sample shows how to connect and then call one API.

Populate Office 365 Developer Tenant with Sample Data

Keywords: windows, c#, mail, calendar, contacts

A Windows Store App that will populate data for Office 365 API services such as mail, calendar, contact and files.

Python Contacts Sample

Keywords: web, python, django, contacts

A sample illustrating using the Office 365 APIs from Python/Django.

Python Client Credentials Sample

Keywords: web, python, django, mail, client credentials

A basic sample of the client credential OAuth flow and Mail API using Python/Django.

Office 365 code snippets for iOS

Keywords: ios, objective-c, mail, calendar, contacts

The Office 365 code snippets for iOS is a repository of code snippets that demonstrate how to work with Office 365 objects like mail, calendar, contacts, and files.

Create an Angular app with Office 365 APIs

Keywords: web, javascript, angularjs, mail

A simple Angular app, SimpleMailApp that uses the Active Directory Authentication Library (ADAL) for JavaScript to authenticate a user and REST calls to the Office 365 APIs to retrieve that user's email using cross-origin resource sharing (CORS).

O365 iOS Art Curator

Keywords: ios, objective-c, mail

This sample demonstrates how to use the Outlook Mail API to get emails and attachments from Office 365. It's built for iOS, Android, Web (Angular web app), and Windows Phone.

Art Curator for Angular

Keywords: web, javascript, angularjs, mail

This sample demonstrates how to use the Outlook Mail API to get emails and attachments from Office 365. It's built for iOS, Android, Web (Angular web app), and Windows Phone.

O365-Android-Art-Curator

Keywords: android, java, mail

This sample demonstrates how to use the Outlook Mail API to get emails and attachments from Office 365. It's built for iOS, Android, Web (Angular web app), and Windows Phone.

Art Curator for Windows Phone

Keywords: windows phone, c#, mail

This sample demonstrates how to use the Outlook Mail API to get emails and attachments from Office 365. It's built for iOS, Android, Web (Angular web app), and Windows Phone.

PHP Calendar API Sample

Keywords: web, php, calendar

A PHP sample using the Calendar API for Office 365.

Node.js Sample for Calendar Sync with Office 365

Keywords: web, node.js, calendar, sync

This is a sample Node.js app that connects to Office 365 to do calendar sync.

Office 365 VCF Import/Export Sample

Keywords: web, ruby, rails, contacts

A Ruby on Rails sample that uses the ruby_outlook gem to call the Contacts API.

Outlook Add-in Code Samples

Note: Some of the following samples were generated with Visual Studio, but not all of them require Visual Studio to function. In most cases, there is no compiled output, only HTML, CSS, and JavaScript files. These files can be edited with any text editor, and only need to be uploaded to a web server to be used.

Add-in Command Demo

Keywords: commands, function, menu, taskpane read mode, compose mode

The Add-in Command Demo add-in uses the commands model for Outlook add-ins to add buttons to the ribbon. This sample demonstrates the different types of buttons that an add-in can implement.

Microsoft Outlook Add-in BillMaker

Keywords: commands, function, menu, taskpane read mode, compose mode

This Outlook add-in demonstrates how to implement three types of command buttons: a button with a drop-down menu (each of which launches a task pane), a button that launches a task pane, and a button that runs a function that uses no task pane UI. The app appears when you open an existing appointment or meeting and allows you to create and send invoices to clients with whom you've met.

Translator Add-in

Keywords: commands, function, compose mode

The Translator add-in uses the commands model (Outlook 2016 only) for Outlook add-ins to add a button to the ribbon in the new message form. For other clients, the add-in uses the standard add-in UI to implement the same functionality. The add-in sends the selected text from the message body to a translator web service to translate from English to Russian.

Hello World Add-in

Keywords: compose mode, read mode

This is a simple mail add-in for Outlook that activates in both read forms and compose forms for mail and appointments. It's based on the starter project that Visual Studio 2013 creates when you select the App for Office project template.

Link Revealer Add-in

Keywords: entities, read mode

This Outlook add-in demonstrates how to find and parse all links in the body of an email.

AttachmentsDemo Add-in

Keywords: attachments, REST, read mode

The sample implements a read-mode mail app that activates for items with attachments. It allows the user to save all attachments to their OneDrive for Business. It implements a WebAPI to retrieve attachments via a callback token, and uses the Files REST API to save to OneDrive.

Forward Email Add-in

Keywords: EWS, read mode

This sample app shows how to use JavaScript and Exchange Web Services in an add-in for Outlook to forward the current mail items to a list of user-defined email addresses, and optionally to include user-defined comments with the forwarded email.

ScanForMe Add-in

Keywords: read mode

This Outlook add-in checks whether the user is mentioned on the To line, cc line or body of an email.

Custom Properties Add-in

Keywords: custom properties, read mode

This sample shows how to set a property on an email message and then store that property on your Exchange server so that you can retrieve it the next time the item is returned.

Identity Token Add-in

Keywords: identity token, read mode

Shows how to use a client token from the Exchange server to provide authentication for users of a mail add-in for Outlook.