sp-dev-fx-webparts/samples/js-skype-status
Vincent Biret 9f8b201a17 js-skype-status: upgraded to spfx 1.5.0 (#545)
* js-skype-status: upgraded to spfx 1.5.0

* js-skype-status: upagraded jquery to latest

* js-skype-status: updating missed schema definition for 1.5 upgrade
2018-07-02 10:09:25 +03:00
..
config js-skype-status: upgraded to spfx 1.5.0 (#545) 2018-07-02 10:09:25 +03:00
images adding js sample to demonstrate how to use UCWA SDK and subscribe to people status (#378) 2017-12-08 13:58:58 +02:00
src/webparts/skypePresence js-skype-status: upgraded to spfx 1.5.0 (#545) 2018-07-02 10:09:25 +03:00
typings adding js sample to demonstrate how to use UCWA SDK and subscribe to people status (#378) 2017-12-08 13:58:58 +02:00
.editorconfig adding js sample to demonstrate how to use UCWA SDK and subscribe to people status (#378) 2017-12-08 13:58:58 +02:00
.gitignore adding js sample to demonstrate how to use UCWA SDK and subscribe to people status (#378) 2017-12-08 13:58:58 +02:00
.yo-rc.json js-skype-status: upgraded to spfx 1.5.0 (#545) 2018-07-02 10:09:25 +03:00
README.md js-skype-status: upgraded to spfx 1.5.0 (#545) 2018-07-02 10:09:25 +03:00
gulpfile.js js-skype-status: upgraded to spfx 1.5.0 (#545) 2018-07-02 10:09:25 +03:00
package-lock.json js-skype-status: upgraded to spfx 1.5.0 (#545) 2018-07-02 10:09:25 +03:00
package.json js-skype-status: upgraded to spfx 1.5.0 (#545) 2018-07-02 10:09:25 +03:00
tsconfig.json js-skype-status: upgraded to spfx 1.5.0 (#545) 2018-07-02 10:09:25 +03:00
tslint.json Add tslint at the root of each SPFx project (#394) 2018-01-08 15:58:48 +02:00

README.md

JavaScript Skype Status WebPart

Summary

This sample demonstrates how to use the UCWA JS Sdk for skype in the SharePoint Framework. It shows how to subscribe to status change of the different people of the organization but you can get much more information, checkout the documentation
The goal is to demonstrate how you can leverage the SDK and to have the simplest approach, hence the usage of JQuery. No Framework (React, Angular, Knockout...) is used here but you can use that SDK in conjuction with any framwork.
No branding has been applied to keep it simple but you could perfectly leverage Office Ui Fabric to display persona cards.

Allows you to properly display and subscribe to change of users' availibility.
See the demo:
demo

Used SharePoint Framework Version

drop

Applies to

Solution

Solution Author(s)
js-skype-status Vincent Biret

Version history

Version Date Comments
1.1 June 22nd, 2018 Upgraded to SPFX 1.5
1.0 December 1, 2017 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

Authentication

Because the Skype API's are secured, you first need to register an Azure Active Directory application.
To do that go to portal.azure.com and sign in as your tenant adminstrator.
azure active directory
Click on Azure Active Directory.
app registrations
Click on on App Registrations and then New Application Registration
app details entry
Enter any name, select Web app / API in Application Type and in Sign-In URL enter https://*.sharepoint.com/*, then click on Create
app details display
Take note of the application ID, we'll need it later. Click on required permissions.
skype permission
Click on add then select an API and select Skype for Business.
skype scopes
Select under delegated permissions both Read/Write Skype user contacts and groups and Read/Write Skype user information (preview), then click select. Finish by clicking Done.
grant permission
Don't forget to click on Grant permissions and yes.

Updating the app

After copying that sample to your local machine and running npm install to install the depenencies, /src/webparts/skypePresence/services/Constants.ts open your favorite editor. Make sure you replace the value of ApplicationIdKey to the value application id we kept earlier.

Deploying the application

Start by running gulp package-solution and deploy the application to the app catalog. More information on how to do it here
At the end select SkypePresence webpart instead
Don't forget to run gulp serve --nobrowser to start the debugging server.

Addtional page required

Because Skype needs to silently redirect the user to a page for the authentication flow, you need to create an additional page called skypepresence in your site.
You don't need to add anything on that page.

tracking image