webex / webex-js-sdk

JavaScript SDK for Webex
https://webex.github.io/webex-js-sdk/
Other
170 stars 336 forks source link

docs(samples): add API reference and Kitchen Sink for Presence #3551

Closed sreenara closed 2 months ago

sreenara commented 2 months ago

COMPLETES #SPARK-492000

This pull request addresses

  1. webex.github.io/webex-js-sdk/ main page should now feature a Presence link as well. There should also be an API reference link for the Presence API so developers can refer to this.
  2. Presence kitchen sink page should allow a developer to input an access token like the remaining pages and initialize the plugin
  3. Once the plugin is initialized, a developer should be able to do these functions:
    • Subscribe to another user's presence and receive updates. Updates can be displayed in a text box
    • Set presence for the user

by making the following changes

Change Type

The following scenarios were tested

  1. Initialize webex token in the new page
  2. Get presence status for the user that's logged in
  3. Get presence status for another user
  4. Set presence for the user that's logged in
  5. Subscribe to presence notifications from another user
  6. Unsubscribe from presence notifications from another user
  7. Check the API reference for Presence and ensure the details mentioned are correct

API Reference walkthrough: https://github.com/webex/webex-js-sdk/assets/131740035/a17bf88e-236d-4e9c-9735-128614b21b2b

Kitchen sink walkthrough: https://github.com/webex/webex-js-sdk/assets/131740035/c724c5e8-250d-46fe-acd9-0fcce144be1c - Part 1 https://github.com/webex/webex-js-sdk/assets/131740035/135dc844-bc12-4d0a-8943-b30ed1828074 - Part 2

Setting presence status for self: https://github.com/webex/webex-js-sdk/assets/131740035/09b2d238-189d-4ac7-8ea4-eef8fa4a8d02

I certified that


Make sure to have followed the contributing guidelines before submitting.