sp-dev-fx-webparts/samples/react-skype-status
Sylvia Okafor ca7fd9d9b2 Updated sample YAML description 2020-02-14 15:31:31 -08:00
..
config react-skype-status: upgraded to spfx 1.7.0 (#688) 2018-11-19 23:52:54 +02:00
images react-skype-status: fixed a bug where subscription to the current users status wouldn't work (#554) 2018-07-05 18:51:58 +03:00
src react-skype-status: upgraded to spfx 1.8.0 (#823) 2019-03-30 12:55:45 +02:00
teams_skypePresenceReact react-skype-status: upgraded to spfx 1.7.0 (#688) 2018-11-19 23:52:54 +02:00
typings adding react-skype-status sample to demonstrate the usage of UCWA SDK (#380) 2017-12-08 14:02:12 +02:00
.editorconfig adding react-skype-status sample to demonstrate the usage of UCWA SDK (#380) 2017-12-08 14:02:12 +02:00
.gitignore adding react-skype-status sample to demonstrate the usage of UCWA SDK (#380) 2017-12-08 14:02:12 +02:00
.yo-rc.json react-skype-status: upgraded to spfx 1.8.0 (#823) 2019-03-30 12:55:45 +02:00
README.md Updated sample YAML description 2020-02-14 15:31:31 -08:00
gulpfile.js upgrading react-skype-status to spfx 1.5 (#547) 2018-07-02 10:09:48 +03:00
package-lock.json react-skype-status: upgraded to spfx 1.8.0 (#823) 2019-03-30 12:55:45 +02:00
package.json react-skype-status: upgraded to spfx 1.8.0 (#823) 2019-03-30 12:55:45 +02:00
tsconfig.json react-skype-status: upgraded to spfx 1.8.0 (#823) 2019-03-30 12:55:45 +02:00
tslint.json react-skype-status: upgraded to spfx 1.7.0 (#688) 2018-11-19 23:52:54 +02:00

README.md

page_type products languages extensions
sample
office-sp
skype
office-skype-business
javascript
typescript
contentType technologies platforms createdDate
samples
SharePoint Framework
react
12/1/2017 12:00:00 AM

React Skype Status WebPart

Summary

This sample demonstrates how to use the UCWA JS SDK for skype with 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
It allows leverages the Office UI Fabric Persona card to display comprehensive information about the user.

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)
react-skype-status Vincent Biret

Version history

Version Date Comments
1.4 March 27th, 2019 Upgrade to SPFx 1.8.0
1.3 November 18th, 2018 Upgrade to SPFX 1.7.0
1.2 July 4th, 2018 Fixed a bug when subscribing to the current user's status
1.1 June 25th, 2018 Upgrade to 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, Read/Write Skype user information (preview), Receive conversation invites (preview) (the receive conversation permission is required to get access to the mePerson object and have access to the current user's presence information) 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