Interactive texture changing

What happens is that we have a scene of a kitchen, in which we want to change the materials of some elements such as the table in an interactive way. I have searched in the documentation of the sketchfab viewer the way to do this from the web implementing the API, but I can’t find much information. You could provide me examples or instructions on how to do this.


Here’s sample of texture swap that should help: