Office365 API – Connected Services

I just started learning how to work with Office 365 APIs and I should say its pretty nice and the tooling support with visual studio makes it really simple to create connected apps that talk to your Office 365 mails, Sharepoint , OneDrive , contacts, calendars etc. To get started you first need a Office 365 subscription, once you get that you also get an azure subscription along with that which you can access using the same username and password in the url .

https://manage.windowsazure.com

Once you login to your azure portal , you will see an Active Directory named after your organization.

Click on the name to see more details, here you will find many tabs including a tab called APPLICATIONS.  Click on Applications tab to see the apps which uses this AD.

azureApp1


  •  Registering Your App in Azure AD

Any app which has to talk to Office 365 using APIs has to be registered in Azure AD. Once you register your app it will appear in the application tab show above.

The easiest way to register your app is using the connected service feature of visual studio. Following are the steps to register your app using visual studio.

conServices

Sign in  using the tenant administrator and you should be able to see all the services you have access to(Calendar, Mail, Contacts ,Users etc.).

conServices2

Go Ahead and click on each service and choose the permissions you want to give to your app.

conServices3

Following is the list of all actions you can perform using Office 365 API.

https://msdn.microsoft.com/en-us/office/office365/api/api-catalog

What happens next when you click ok is the beautiful part, the tooling takes care of adding all the necessary nugget packages, it even shows you a webpage where you can get started with code samples.

outputwin1

outputwin2

For Everything related to Office365 API, Check out http://dev.office.com/

For Code Samples do check out github

Leave a Reply

Your email address will not be published. Required fields are marked *