How can I use Office 365 API with SharePoint hosted app ?
To access Office 365 services like mail,calender and Lync.
You can not use O365 APIs in sharepoint hosted app because right now the only supported project types are:
Besides that, these APIs are in preview mode. For more info check this link