botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Get Skype User Profile Information

Open piffarettig opened this issue 9 years ago • 5 comments

I ve seen the JSON being exchanged on each message with the bot via Skype, and Skype only provides you an ID and the user's full name. As well, I ve seen over here that this guy wanted to obtain the user's username but that's not possible yet.

Is it any way of requesting a HTTP Restful API provided by Skype in order to get that info? I tried to research over Skype documentation but I didn't seem to find what I wanted. What currenty exists are different SDKS, both for web, mobile/tablet apps or even Skype uris that can be embedded on html, but no RESTful endpoints.

Docs seem to be a little bit hazy and difficult to understand.

Doc 1 Doc 2

Any help solving this?

Thanks!

piffarettig avatar Jan 03 '17 13:01 piffarettig

Hi, I have seen using the node.js Skype example that they take the name on adding the contact to Skype:

bot.on('contactRelationUpdate', function (message) {
    if (message.action === 'add') {
        var name = message.user ? message.user.name : null;
        var reply = new builder.Message()
                .address(message.address)
                .text("Hello %s... Thanks for adding me. Say 'hello' to see some great demos.", name || 'there');
        bot.send(reply);
    } else {
        // delete their data
    }
});

I tried and it does work. No idea how to take it though in other situations / not the adding to contacts?

francescacoo avatar Feb 06 '17 16:02 francescacoo

This is currently not possible with BotBuilder SDK as the Skype user is represented by a UUID for privacy reasons. You would need to interact with the Skype API directly.

nwhitmont avatar Apr 10 '17 23:04 nwhitmont

How can I interact with the Skype API to get user info? Of course, without authenticating the user again, as he's already authenticated. What data does the BotBuilder provide so I can use to get the username in the Skype Api?

piffarettig avatar Apr 10 '17 23:04 piffarettig

@francescacoo Hi, does this get you the actual username or the display name?

osvc96 avatar Sep 22 '17 17:09 osvc96

Same problem here, how to use Skype API to get the user info using the ID ?

ogarules avatar Apr 06 '18 19:04 ogarules