OfficeDev/O365-iOS-ArtCurator

Name: O365-iOS-ArtCurator

Owner: Office Developer

Description: This sample demonstrates how to use the Outlook Mail API to get emails and attachments from Office 365.

Created: 2015-06-26 22:03:24.0

Updated: 2017-12-28 21:29:32.0

Pushed: 2017-12-28 21:29:31.0

Homepage: null

Size: 2326

Language: Objective-C

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

O365 iOS Art Curator

Build Status

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. Check out our article on Medium.


The Art Curator sample provides a different way to view your inbox. Imagine you own a company that sells artistic t-shirts. As the owner of the company, you receive lots of emails from artists with designs they want you to buy. Currently, you use your email client to open each message and attachment. Instead, you can use the Art Curator sample to give you an attachment-first view of your inbox so that you can pick and choose designs you like.

Office 365 iOS Art Curator

This sample demonstrates the following operations from the Outlook Services Mail API:

Prerequisites

Note
You will also need to ensure your Azure subscription is bound to your Office 365 tenant. Check out the Active Directory team's blog post, Creating and Managing Multiple Windows Azure Active Directories for instructions.

In this post, the Adding a new directory section will explain how to do this. You can also read Set up Azure Active Directory access for your Developer Site for more information.

Setting up Xcode project

First start

This app contains pre-registered application information on Azure with Send mail as a user and Read and write user mail permissions.

App information is defined in `Office365Client.m`.

    // App information
    static NSString * const REDIRECT_URL_STRING = @"https://UseOnlyToRunTheArtCuratorSample";
    static NSString * const CLIENT_ID           = @"1feaa784-0130-48d9-adeb-776fc65888c5";
    static NSString * const AUTHORITY           = @"https://login.microsoftonline.com/common";

For your own app, Register your native client application on Azure.

Specify the redirect URI when you register your application. Next, get the client id from the CONFIGURE page. The application must have the Send mail as a user and Read and write user mail permissions.

For more information, see iOS-O365-Connect sample

Limitations

Questions and comments

Troubleshooting

With the Xcode 7.0 update, App Transport Security is enabled for simulators and devices running iOS 9. See App Transport Security Technote.

For this sample we have created a temporary exception for the following domain in the plist:

If these exceptions are not included, all calls into the Office 365 API will fail in this app when deployed to an iOS 9 simulator in Xcode.

Additional resources

Copyright

Copyright (c) 2015 Microsoft. All rights reserved.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.