access Lync / Skype for Business conversation in C# - c#

I'm facing a use case, where it shall be possible to take over a Lync/Skype for Business Conversation into my Software. The help desk user was contacted by a customer via Skype for Business and now needs to create a ticket from that conversation. Only the chat-conversation is needed, no voip conversations or so.
I could not find any documentation about how to start any Actions out of a Skype for Business conversation window.
I'm sure, somebody solved that before.

Note that:
- "Skype for Business" is basically a rebranded Lync, so Shane's advice about the "Lync Client SDK" is correct.
- "Skype" != "Skype for Business". It's like java and javascript, totally different, just similar names for branding.
- Persistent Chat means "chat rooms that remain". Skype for Business has regular IM chat and its much less used "Persistent Chat".
- tel.red can do this for you if you pay them.

I think what you want is to use the Lync Client SDK specifically the parts dealing with Persistent Chat, there are samples you can play with.
If you don't want to integrate into the Lync Client itself, you can go down the UCMA route and create a "bot" that can take part in chat conversations.

Using Skype's own API is probably the best way.
http://www.skype.com/en/developer/

I am not able to get the lync sdk controls to work when Skype for business/lync is running using app-v. it works fine when the program is "installed" though.
when running Skype for business/lync in app-v, the error is basically lync client not found, even though it is obviously running.

Related

Send WhatsApp message from C#

I was trying to send a WhatsApp message using a console application and all my searches I made on the internet for the same lead me to the NuGet WhatsAppAPI. I understand that because this not being an official client WhatsApp has blocked it currently.
Do we have another way to achieve the same?
After some googling I've found this useful link: https://blog.cloudrail.com/whatsapp-api-how-to-use-the-whatsapp-chat-api/
Basically it says:
At the moment, there is no official WhatsApp API to use. There are
some libraries available which use an unofficial API to send and
receive messages, but this is only limited to a single number. All
those libraries are basically hacks which try to act like a standard
WhatsApp client which you see on Android or iOS in combination with
WhatsApp Web. Nevertheless, there is one official offering by
WhatsApp: the Click to Chat API, which is basically only a link containing a target number and a prefilled text. Once a user clicks on this link, the WhatsApp client (Android, iOS, Web, etc) opens with a new message to the prefilled number with the prefilled text. This is a cool way to add a fast contact option for example if you want to sell your car. (see this link for more about 'WhatsApp Click To Chat': https://faq.whatsapp.com/en/android/26000030/?category=5245251).
If you want to play around with messaging platforms to build chatbots or other systems, have a look at Facebook Messenger, Telegram, Viber, Slack or Line.
Hope this helps
Update 19.05.2022: Meta just anounced a public API for businesses of any size. I will update this answer as soon as there are more infos about this.
Source: https://www.facebook.com/4/posts/10114482926371251/
After some digging: "WhatsApp is intentionally a closed system without an API for external access."
You will have to embrace skillz/madness to pull this off, which, sadly, we will not publicly help you with.
Bon chance!

Push Notification for web site

I have been tasked to add push notification for a web site being developed. Never done one before. I spent a long time googling this and I am not much closer than when I started searching, mostly because most articles describe specific details.
The web application is an intranet app and they are asking for things like when a new report is made available, let the users know about it; or basically any kind of organization/department announcements.
Can someone tell me what are the components involved in developing/deploying this type push notifications? If I know what the pieces are that make this process possible, I can take it from there. I must mention that this web application is being designed to be available on devices (desktop, tablets and phones; if this makes any difference in design/development).
You can try OneSignal Push Notification
in this you can send notifications to websites,android app and ios app
You can also check the documentation for sending notifications to website here
Hope this helps:)

How to connect c# winform aplication with Interactive Brokers

I need to connect clients (c#, winforms) appliction with Interactive Brokers and improve app with some "stock market" functionality.
First I start project with reading IB documents and learning IB's API.
After I did that I'm just more confused and didn't find anything useful!
I want to ask if someone knows where I can find documentation that would explain everything from the beginning, from creating test accounts, using IB's API, to connect to IB system...
If such documents doesn't exist can anyone give me answer the following questions:
Does my application using IB's API can directly connect to IB system or it must use TWS (Trader Workstation)?
What is the purpose of IB's API when TWS must be running in the background?
Is it possible to create a test account on IB?
I would be grateful for any advice, a link to the documents or examples. Thanks in advance.
There are two options to use IB API. You can connect either to TWS application or to Gateway application (same as TWS but without user interface). Gateway is specifically designed for API use so you do not have to run full TWS on the background.
Interactive brokers does support paper trading account. It is just like your real account with full functionality but fake money so you can test your API or system.
Here is very simple example of how to send an order through API:
http://www.bowgett.com/Blog/post/how-to-send-an-order-to-ib-tws-in-just-68-lines
As others mentioned, your C#/C++/Python/Java/VB/etc. program incorporates the IB API code libraries. This program then connects to either the IB Gateway or Trader Workstation (TWS). So yes you need to keep ether the IB Gateway or TWS running and connected to the IB data center all of the time your program is running.
You can create a paper trading account with IB to do testing. You can also use the "edemo" account to test basic API functionality and connectivity. However the edemo account only sends back some canned data to most market data requests. You can do a lot with edemo as far as testing goes but to see anything "real" you would need to open a paper trading account (and eventually a funded account).
In addition to the tips others suggested, you might find some introductory tutorials useful. For example: http://holowczak.com/ib-api-tutorials-by-programming-language/ has tutorials on IB API using a variety of different languages and Windows / Console alternatives. In these tutorials, the interaction between your program, TWS/IB Gateway and the data center are discussed. Also discussed are the API architecture and the publish/subscribe messaging model that IB (and many other market data APIs) uses.

Send messages to Skype "group" chat from .NET?

Is there an easy way to send group chat messages to Skype from .NET? I don't need to respond to any commands or anything, so it doesn't need to be a BOT. Basically, I would run this program on a dedicated box with Skype running as a special user and I would have it report certain information to a specific group chat.
I understand there is a Skype COM library. I have seen examples based on that but I haven't been able to get any traction.
The currently available Skype API for Windows uses WM_COPYDATA to exchange text-based commands for controlling Skype (see the Public API Reference download). There is a new thing called SkypeKit in development but it's a closed beta so I don't know what it will do to enhance the experience.
There appear to have been a few projects here and there that have wrapped the existing public API with some .NET-based calls using C#. These either wrap the basic level messaging system or the COM wrapper, Skype4COM (as you have already seen). A Google search gave me these results that seem to get you started:
Controlling Skype with C#
How to do Skype in C#
C# Example Project for Skype4COM
Based on your experiences, I would look at the first item in this list as it appears to be a directly interacting with the Windows messages (i.e. WM_COPYDATA) rather than Skype4COM.
Sending a chat message to a group
Assuming you utilise the C# wrappers referenced above, here is a rough idea of the commands you'll need from the public API in order to send a chat message to a group.
The command to start a chat is CHAT CREATE. It appears from the documentation that you have to specify each recipient (or target, as the written in the API reference) individually. Whether this can be a group name or not is not made clear, however, the GET GROUP USERS command enables you to obtain the individual users within a specific group.
Once you have a chat, you can use the CHATMESSAGE command to actually post a message.

.NET XBox Live Account API

Is there a .NET API available to get data from your XBox Live account?
All I'm really interested in is who's online, but messages would be cool too. And some sort of event driven notifications of user sign-on would be great, but I'll poll if need be.
Check out the Xbox Community Developer Program.
You can also try and take a look at https://xboxapi.com/
They provide a API system to get all sorts of info.
Example dev: https://xboxapi.com/dev/profile/Major+Nelson
their documentation is here, https://xboxapi.com/documentation
it provides info to get data in PHP json, xml, or dev.
Sadly I dont think anything like Messages and some notifications, only publicly visible info. But if you track profile info one can generate a history and if you poll the online status, you can make a popup or something

Categories

Resources