0

How can I use Office 365 API with SharePoint hosted app ?

To access Office 365 services like mail,calender and Lync.

1 Answer 1

4

You can not use O365 APIs in sharepoint hosted app because right now the only supported project types are:

  1. NET Windows Store Apps
  2. .NET Windows Store Universal Apps
  3. Windows Forms Applications
  4. WPF Applications
  5. ASP.NET MVC Web Applications
  6. ASP.NET Web Forms Applications
  7. Xamarin Android and iOS Applications
  8. Multi-device Hybrid Apps

Besides that, these APIs are in preview mode. For more info check this link

3
  • 1
    In fact, the JS O365 API cannot be called from the browser at the moment. Be it a SharePoint Hosted App or a simple web page. This is because the Office team is still sorting out cross domain related issues. Only way to call it right now is through Office Apps or through .net code. Commented May 26, 2014 at 15:48
  • Besides that O365 APIs are not supported for SP yet even in provider hosted app. Check this sharepoint.stackexchange.com/questions/98520/… Commented May 27, 2014 at 3:27
  • True. Check JThake's comments here for the technical reason: blogs.office.com/2014/05/12/… Commented May 27, 2014 at 9:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.