Office 365 / Exchange API for windows phone 8/8.1 development project - windows-phone-8

I am working on a Windows Phone development project (wp8/wp8.1) and need to grab the user's Exchange/Office 365 calendar information. My quick research found the EWS API and Office 365 API preview cannot be used in Windows Phone projects.
Does anyone know any approach/API that I can use to make the oAuth authentication and data retrieving code easier?
Thank you.

Depending on what you're trying to do, you can either use the calendar object directly which can read info from the phone calendars : http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh286421(v=vs.105).aspx this works, but you don't have any access to attachments for example and there's few others limitations.
Or if you target 8.1 : http://www.cloudidentity.com/blog/2014/04/16/calling-office365-api-from-a-windows-phone-8-1-app/
Or you can use the Exchange Web Services in SOAP or POX like you would do if developing for another platform. I can't post the link, but the reference is on the msdn.
Good luck with exchange development, it's quite a nightmare :)

Related

One Note API for office365 Home integration

I have a web application with which I want to integrate One Note.
My License is office 365 home.
Can I Integrate OneNote API with my PHP application with office 365 home subscription? or do we have to get some higher level subscription?
You should be able to. Try signing in with your account in the graph explorer and making a few API calls to get your OneNote content - you can quickly confirm that way.
https://developer.microsoft.com/en-us/graph/graph-explorer

what is the best way to access calendar of microsoft exchange server 2016 from 3rd party client application?

We are trying to build a node js based client application to access calendar of microsoft on-premises exchange server 2016. We studied about outlook calendar api and Exchange Web Services(EWS). As I know, outlook calendar api is not allowed to access on-premises exchange server.
I want to know
Is there any way to use outlook calendar api to access calendar or
have to use EWS?
If we have to use EWS
Is there any good node js module for EWS ?
Does EWS provide all functionalities of calendar (such as outlook
calendar api provides all capability of calendar)?
you can not use outlook calendar api (Office 365 specific) to access on premises Exchange Servers, these are Office 365 only.
You can actually use ews with nodejs, take a look at ews-javascript-api module. This is complete port of c# counterpart.
EWS does provide all of the features you can do in Outlook, in fact Outlook for MAC is based on EWS only.
if you can be specific to what exactly you are trying to do, I can provide sample code. You can look at official EWS managed API documentation for code examples. most codes are valid except that you have to use promise style, see github readme and issues for more code samples.

Get Windows Phone app information

Is there a way to get info about particular app such as number of downloads, some kind of statistics etc., not being its owner. I am wondering whether exists any API to get information from Windows Phone Market? Thank you in advance. Last concern : is it enable to use another ad on windows phone than microsoft advertising? Will such app be approved on market?
Unfortunately there is no such Api to Access these things.

Windows phone calendar integration

We are building a simple we app that contains basic tasking functionality (tasks, appointments, etc.).
We want to integrate it with Windows Phone 8 native Calendar, without writing any apps but by making a some sort of webservice that could be added as an account to Windows phone (e.g. Facebook, Microsoft Live, Gmail - are all accounts that are added, thus the tasks are synced).
Yet what have I came up with was this:
Interacting with calendars (Live Connect API)
This looks like a way to actively push and control the items on the Microsoft Live account, which would be fine but it requires that account to make it happen and an active module to do all the management.
We are looking forward to mimicking account behaviour and letting the phone do all the work :)
CalDAV was another keyword that popped up while searching but to my understanding windows phone doesn't support it.
Is it possible to forcefeed windows phone calendar objects to the phone without making a custom app?
Windows phone 8.1 supports cardav/caldav. You can put a custom dav server address selecting icloud account (it is a workaround) and editing the dav url. So you can set up a dav server in your app and synch calendars and contacts between your web app and the wp8 defaukt calendars and contacts app.

New OneNote note via WP8 app

Is there any way of programmatically adding a new note to OneNote via a Windows Phone 8 app? I know I can't interact directly with the OneNote app, but wondering if there's a way to add directly to the Personal (Web) file on SkyDrive via an API or sending an email or whatever. I've done some searching and I'm guessing not, but can't hurt to ask, right?
You can connect so SkyDrive via the Live Connect API. There's a tutorial for interacting with SkyDrive from Windows Phone here. I've not tried interacting with a OneNote file but if it's on SkyDrive, it should be accessible.
Having said that, OneNote uses a proprietary format and I'm not sure if there's an API you can call on the phone to create OneNote pages programmatically. It does have an interface which you could look into but it seems you might need to do that server side and interact via a web service from your app.