Get unread emails from exchange in Windows 8 Store App - windows-8

I want to write an App (Windows Store App) which should display all my unread emails. I did my research at google and msdn but found nothing suitable.
The problem is as follow, my development pc does not have any connection to a exchange server, so I had to write an app (C#/XAML) which should later on work:
On every PC in the organisation
Uses the default credentials of the user
Displays the unread emails
Is it possible to get these information (Emails) by asking the EWS?
Is there a WinRT compatible Library to do this?
Thanks!

I did not found any good solution to request the Exchange Webservice from my Windows Store App.
The only solution I have now implemented was to use a own webservice which can use the EWS Managed API to send requests to the Exchange Server (higher than 2007).
The Windows Store App itself communicates via WCF with my Proxy-Webservice like it is done here

Related

Establish a Lync/Skype for business IM Chat from a website (Intranet)

We need to develop a website in Asp.net MVC 4 which will connect user within the organisation on Lync or (skype for business now):The ask is:
1) A Sales guy see 10 Technical person in the list which is in database and all of them are in AD if that helps
2) A sales guy click on an icon to connect to a technical person, a lync window appears on client machine (We can assume that all client will have Lync or skype for business up and running on their system from where they will access website)
3) A lync window appears on the machine of a person we are trying to connect to with Default text "hi! Bla Bla Bla"
Can somebody point me to the correct implementation with some set up details from infrastructure POV as well. We tried to do that but that does not work when we deploy to server:
AutomationModalities conversationModes = 0;
Dictionary<AutomationModalitySettings, object> conversationSettings =
new Dictionary<AutomationModalitySettings, object>();
conversationModes = AutomationModalities.InstantMessage;
conversationSettings.Add(AutomationModalitySettings.FirstInstantMessage, "Hi This is a call XXXXXXn");
conversationSettings.Add(AutomationModalitySettings.SendFirstInstantMessageImmediately, true);'
Since it appears you cannot touch the cross-domain authorization list (white-list), you should be able to achieve what you are looking for by writing some non-JavaScript code to communicate with UCWA. There are a few articles on MSDN that demonstrate how to communicate with UCWA using C#/.NET which might prove interesting:
Lync 2013: Create UCWA Windows Store apps using C#/XAML and XML
Set up the UCWA event channel to receive incoming notifications
Making an outgoing IM call and sending messages
Answer an incoming IM call and receive messages
It gives the basics of handling authentication, interacting with the events channel, handling incoming IM calls and messages. It is designed to handle XML, but that could be changed to work with JSON.
You could use the Skype Web SDK for this - Microsoft have a bunch of examples on their site for the SDK.
http://developer.skype.com/
or more specifically
https://msdn.microsoft.com/en-us/library/dn962160%28v=office.16%29.aspx
It's a JavaScript library, but very easy to integrate with a .NET MVC or Forms app.
I also have some tutorials on exactly this on my blog but not if it's appropriate to post that here. :)

How to monitor all lync users instant message via C# console application?

I have created UCMA trusted application using C# console application.
I want to monitor all Lync Users instant messaging calls (in one place) as well as store their conversations in the database via this console application.
Is it possible?.
If possible, please give an idea or any url.
UCMA trusted applications will only respond to traffic to the endpoints associated with that application so if you want to monitor all instant message traffic it would be the wrong API.
I would suggest using SIP Application API http://msdn.microsoft.com/en-us/library/office/hh364644(v=office.14).aspx to create a server application. This will also require the use of MSPL documented here
As Dai has asked - is the console application a requirement or will a windows service be ok?
Try our this sample application SipSnoop it basically shows all the metadata passing throught the lync server, you can tweak around it according to your requirement.

How to monitor my Lync by C# console application (using trusted application endpoint)?

I have created console application with Trusted Application (UCMA) endpoint using C# Which is running in separate server (Computer).
I have installed Lync in my laptop. My requirement is to:
The console application should show subject, sip uri and date time of each instant message calls received by the Lync.
Duplicate of How to monitor all lync users instant message via C# console application?
Answer in full there but in summary a UCMA app would be only able to track calls to it and not all calls on the network. Look to the SIP Application API and MSPL based solution.

How to send a Skype chat message to a group using a remote server?

I looked at the Skype API docs (http://dev.skype.com/desktop-api-reference) and it seems to provide API functionality for interacting with a Skype program running on the same machine.
How can you send a chat message from a server that is not running Skype?
If you still need a solution for this problem, you can try now creating a Bot using Skype Bot Framework from Microsoft (https://docs.botframework.com/en-us/skype/getting-started).
It's kinda easy to implement, and the bot acts like a contact, wich must be added by someone to start interacting with your app behind it.

Can I access Outlook from Windows Store app

We have a requirement to access Outlook through Windows Store App (Metro) using JavaScript.
Is this possible?
Thanks.
Suhas
According to MSDN forum, there is no API to get/insert appointments from an app on the system to Outlook. If the appointments are server based (from Exchange, Live, etc.) you might be able to access/insert them through a web service.