How to retrieve a Lync conversation with a specific user - api

I would like to check if a Lync conversation with a specific user already exists. I am using the Lync 2010 API.
I think this can be done by iterating the Conversations collection returned from the Conversations property of ConversatinManager. However, I am not sure this is the best way (since my application might handle many conversations at the same time) and that there is no other more efficient way to do so.
Help anyone?

It's best to keep your own list of conversations. By subscribing to the ConversationAdded and ConversationRemoved events, you can keep a collection of conversations, keyed by the SIP address of the user. That way you'll always know for sure.
If you only care about specific types of conversations - such as audio/video for example - be aware of modality changes on existing conversations, such as when a user starts a conversatinon on IM, but then upscales to AV. That won't be classed as a new conversation. I've blogged about handling this here: Detecting Modality Changes on Existing Conversations.
Hope this helps.

Related

Assigning webhooks to Firebase Messaging "subscribe to topic" event

In my current project I am using the Kreait Firebase PHP SDK to send out push notifications to Android & iOS devices that have subscribed to notifications on named topics. No issues thus far. However, rather than have fixed topic names I would now like to generate topic names based on the current "condition" of the connecting device. The condition could, for example, be a geographic location.
This is not too difficult either and I have modified my app to handle this. However, in order to put the ability to have such autogenerated topics to use I need to know the topic names on my server so I can send out targeted messages via Kreait. I find Google's Firebase documentation a bit dense at times and have not been able to establish whether it is possible to assign webhooks that get called by Firebase whenever a SubscribeToTopic, UnsubscribeFromTopic event occurs.
A simple question - does FCM even offer anything like this capability? If so, any pointers to the relevant documentation would be much appreciated.
There is no public API to get a list of topic names from Firebase, nor is there a way to hook into the subscription mechanism.
Your best bet is to simply make two calls when a user subscribes to a topic: one to Firebase, and one to your own backend API that keeps a list of active topics/conditions.

Record a Hangout Session without being present

We want to create hangout sessions with a master (altough this assistant will not be present in the session). So, is it possible to record all those sessions and store them somehow by programming? For example, in the master Google Drive account? Thanks!
It is not possible to achieve by programming what you cannot do through the UI
Through the UI it is not possible to record an meeting in which one does not participate which is good for safety reasons.
Just imagine you are having a meeting with someone and think it is a private meeting - but actually somebody is recording it in the background without your knowledge.

Mailchimp API: Add emails to my app's users' email lists

Is it possible to use Mailchimp API to subscribe emails to the lists of MY USERS' Mailchimp Accounts and not my own?
Basically I have a web app, and users collect emails of various subscribers through this app. I then want them to be able to click a button and subscribe all those emails to their lists.
I've looked at Mailchimp's API - particularly the /lists/subscribe and the /lists/batch-subscribe methods. However so far it appears that these will only work for your own Mailchimp account and not for remote users' accounts.
Can someone please tell me whether what I'm trying to achieve is possible with Mailchimp's API?
You would need to execute the api-calls with your users' api-key, which would mean that you execute the calls with their credentials.
There are three different ways to get their api keys, with different practicality levels.
You guess. They look like guids without dashes, and some information about which datacenter it is associated with. Some easy (and somewhat bad) calculations indicate that there are 2^128 api keys in every datacenter, so this will consume both cpu- and network-resources, and invoke the rage of the Mailchimp. The linked image shows him on a good day. He won't be as pleasant if you choose this alternative. Dont do this.
You ask, in an evil way, for their username/password. This is bad since it will give you to all accounts those credentials works with. This would also give you access to stuff that aren't available using api calls (like payment stuff). This wont work at all if your user is intelligent administrators that are using AlterEgo, the two-factory security alternative. This alternative is less bad than blindly guessing, but still provides too much access, if it works at all.
You ask, in a user-friendly way (with perhaps some quick tutorials), for the user to generate an api-key in mailchimp to provide to you. This is the Good Alternative (tm).
You may choose any implementation as long as you choose number three.

How to get in touch with the users of your WP7 apps?

This is a problem that every developer will face when building their apps: how to contact the reviewer of your app to notify them of an update, new release, help topics, etc?
Some things I am thinking:
Include an RSS feed in your app which you can update to notify the users of the app.
Include a twitter feed regarding your app. How to go about this?
Include a way for the users to subscribe to a mailing list. This way, I can send a mass-email to the users who opted-in? Any suggestions here?
Any other ways that you think this can/should be done? Any existing solutions you can point me to will be great. Thanks in advance.
One way, for contacting a specific user who created a review of an application is to go to Zune Social (at http://social.zune.net/home) and create a new message. You can then enter the Zune Tag of the user who created a review.
Personally, I'd try to do all three - have a web page/site, with an RSS feed, and a subscription link (so they can subscribe to the RSS feed via email) and then post any updates to your twitter account as well.
You can't really force a user to do any of these, but having the options available, and linked from inside your app on the about page is probably good practise.
You could also include some kind of "Update Available" feature inside the application. Try to make this as unobtrusive as possible obviously. Obviously if they've still got the app installed they'll get an update notification from the marketplace anyway.
Sam
Besides the suggestions made by samjudson, I'll also recommend having a support-page with a direct option to send a email to you. Here's a example of a support-page from one of my applications. I've received lot of emails with suggestions for improvements, or complains about bugs. And since it's by email, it gives you the option to respond directly to people.
Another thing about reviews. Don't take them to serious. Most people only rate negatively (since humans like to complain), and by such a lot of reviews are often misinformed, outdated, or the users just been plain ignorant.

Is this application possible with the twitter api?

I have to make an application where a "sender" can send a message to a group of people and to a location. So when a member of the group reach this place (using location position with the cell phone), he receives all the messages for this location. I have thought to make the application using the twitter API, but I'm not really sure if that functionality is possible.
I thought using twitter would be nice to manage groups and login... the application is written in c++ in QT, so, any ideas for the service to be used to manage messages?
Thank you!
This sounds more like something you'd want to write independently; there's nothing using Twitter would really gain you here.
ok... Here are some points from me.
First of all the person should have enabled geo tagging for you to get the position of the location.
The person should send a Tweet only then you will know the location of the person.
I wouldn't say its not possible but may not work in all cases. I would look for developing a service where the person can join, activate geo tagging and then you can monitor each person's tweet and then send them this location based message.