Bloomberg chat API? - bloomberg

Is there any API to send Bloomberg chat messages?

You mean to chat on a bloomberg terminal? I don't think it exists. I did see a helpdesk chat on their website once, but nothing that lets you communicate with other terminal users. They charge alot of money and I know guys who use their terminals only for access to the chat and network who use it. All the big shots from the ceo of citi to the chairman of hilton hotels to even Tim Geithner..I don't think its likely bloomberg would open that chat to the outside work or outside their platform.

To answer your question directly, no, there is currently not support within the bloomberg API to access the chat function (What Bloomberg calls IB - Instant Bloomberg).
If you have a terminal - or equivalent subscription, which is required to work with the API, you can hit WAPI and it will guide you through the SDK and what options exist.
The only options I know of for automatically sending some information through a chat box (which can be opened in a distinct window) is to pull it into focus and use ctypes or SendKeys in Python (or equivalents in other languages) to send the information you wanted to because you can tab between the contact/start chat and the text area within an open IB Manager box.
Let me know if you need any examples.
Some additional color on this question here2

They don't actively provide that, however I found a 'solution'. What I do is activate my VBA and do:
App.Activate "IB - IB Manager"
Application.Sendkeys "Hello, world"
Application.Sendkeys "~"
This e.g. allows me to automatically quote prices into Bloomberg IB chats.

Related

Getting started creating a web form in Microsoft Teams

I dont know where to begin. Do I need to create an app? Do I need to use bots? I have tried finding docs online but don't know where to start. Any help with be appreciated.
I am trying to create a small form in a teams channel that my users will fill out.
User enters #projects
Web server responds with
User clicks submit and data gets posted to my web server.
You're correct that there are a few different kinds of applications in Teams, so finding the one that suits your needs can be a little confusing at first. For what you're trying to do, I would recommend a Bot, and when it received a message (which it will do when it receives your #mention), it can respond with an Adaptive Cards. Adaptive Cards, if you've not used them, are like small embedded forms inside the chat. The user can complete the card and click a button, and it will send the payload back to your bot to do whatever it needs.
Bots, incidentally, are basically just web services, so your bot can do whatever it needs once it received the payload, such as calling another API in turn.
You haven't mentioned what language you might want to work in, but here are some good starting point nevertheless:
https://dev.botframework.com/
https://github.com/microsoft/BotBuilder-Samples/tree/main/samples
https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/csharp_dotnetcore/57.teams-conversation-bot (I've linked the C# version - you should know that Teams bots use the same Microsoft framework as -all- bots build for the Microsoft world, such as web chat bot or a Skype bot. As a result, you have to ensure that anything you look at is applicable to Teams as some content/samples are not)
https://adaptivecards.io/ (as with Bots, Adaptive Cards have a life outside of Teams, so some articles/content/etc. might not be applicable to your scenario)

CLI interface for avaya 9608G IP Phone

I've a Avaya IP-Phone 9608G and I want to control it from my CLI.
Can anyone help me to know CLI interafce for avaya IP phone
Since you did not specify what specific task you would like to achieve, I list the technologies I use for interacting with Avaya phones below. You can use them to implement CLI applications to do what your use case is screaming for.
The following interfaces you can use to interact with the Avaya phones:
AES/CTI Server using the CVLAN or TSAPI protocol. You can control/monitor the PBX objects with it so you can see what is happening on your desk phone or you can initiate a call, answer an incoming one, etc...
You can use the TSAPI for C programs or JTAPI for Java programs.
TSAPI overview
AES Server using the CMAPI/DMCC protocol. With that you can register on to your desk phone. Using CMAPI/DMCC you can "pushing" your physical buttons, check what the desk phone display is currently showing, etc.
DMCC overview
You can use the Push SDK for pushing unsolicited content to the phone's display.
PushSDK overview

sending message/email using Bloomberg API

Is there a way to send email or message using Bloomberg API?
We currently doing this via keystrokes.
No, since it's not documented in the Developer Guide:
http://www.bloomberglabs.com/content/uploads/sites/2/2014/07/blpapi-developers-guide-2.54.pdf
Another place where you can try to find hidden features is in XLTP function on the Terminal. But you won't find this one there.
What you can try is to bring the Terminal window to the foregroud and use SendKeys to send the keystrokes to send the MSG. I expect this would be slow and unreliable. You can improve on this by calling macros that you've defined on the terminal that save you from sending some key strokes.

Capture Keystrokes on Symbian OS?

How would one go about capturing users keystrokes in the SMS composer on the Symbian OS, specifically for a Nokia N73 (or any of the symbian supported devices http://en.wikipedia.org/wiki/Symbian_OS#Devices_that_have_used_the_Symbian_OS)? I'm new to symbian development and I'm trying to write an application to analyse writing styles of those who send SMSs. Any information (or push in the right direction) would be great.
Many Thanks,
A
Actually, you can capture keystrokes destined for any application in Symbian OS.
RWindowGroup::CaptureKey() and RWindowGroup::CaptureLongKey() allow your executable to capture keys from any applicaton, whether yours is in the foreground or not.
However, in this case this may prove to be tedious - these two functions work by capturing specific key codes and modifier combinations, so you would have to set up a lot of captures to deal with all the key combinations in the SMS composer.
You would also have to pass the event on to the SMS composer once your exectuable had captured it. Whilst nominally possible using RWsSession::SendEventToWindowGroup() or TApaTask::SendKey(), there are complexities involved the events arrive in right order (i.e. key down, key event, key up) and behaviour of different FEPs (Front End Processors) for user input.
So whilst it is nominally feasible to do what you require as above, it would prove to be tedious to implement and test, bordering on the risky. If all you want to do is analyse writing style to collect data (rather than in a product app), you might be better off writing your own SMS composer - there are plenty of examples on the Forum Nokia web site of editors and SMS sending.
On a related note - is there an API that can detect all the keys being pressed at once as I stamp on my Symbian phone in frustration at its APIs? ;-)
Well, there are several levels to answering to your question.
The keystrokes are actually captured by the message editor application. So, either it provides an API to feed you all its keystrokes (you can look for one on http://forum.nokia.com. You'll find the message editor API but it will be mostly about re-using GUI controls and not what you're looking for) or you would need a transparent application of your own that stays in the foreground and captures keystrokes before feeding them back to whatever application happens to be right behind. Fortunately (for obvious security reasons), Symbian OS will not allow you to do the later.
You can, however, have your own application read messages when they are saved in the phone memory: when they are saved in the Draft folder or in the SMS Outbox.
The obligatory shameless plug: I would advise reading the messaging chapter of http://www.quickrecipesonsymbianos.com in order to understand how to use the Symbian Message Store
The classes of interest in your case are : CmsvEntry, CMsvSession, MMsvSessionObserver, CMsvOperation and CSmsClientMtm.

Set instant messenger display message programmatically

Would a script that sets display messages for instant messengers be simple or complex? After some searching, there doesn't seem to be any information about this at all.
For the sake of an example, if I had a text file of quotations, would it be possible to have the google talk display message change to a different quotation hourly?
Depends on which client you're using. As far as I know, Google's client doesn't offer any interface for plugins, but the open source instant messenger Pidgin does. I think there already is a plugin for what you want to do, but you can write your own using the documentation and examples they give you.
The complexity of writing something like this is based on how much C or Perl you know, since you can program in either of those for Pidgin. Reading code from other people's plugins, you should be able to figure out the Pidgin API.
You can use Kik API to programmatically send rich content and files between mobile applications. It is available for iPhone and Android platforms and takes only about 5 lines of code to integrate into your app. There is more info at the API website: http://www.kik.com/dev
Disclaimer: I'm on of the developers behind Kik API :)