Quando viene creato il widget Web SDK. In genere, questo accade quando fai clic sul
launcher.
Puoi utilizzare questo evento per inviare il token di autenticazione:
constujet=newUJET({//...//authenticate:getAuthToken})//whenyoudidn't use `authenticate` option, you need to call// `.authenticate` method manuallyujet.on('created,()=>{fetch('/token').then(resp=>{returnresp.json()}).then(data=>{ujet.authenticate({token:data.token})})})
autorizzato
Questo evento si verifica quando viene chiamato il metodo .authenticate e viene restituito
un token all'SDK web.
pronte
L'SDK web ha recuperato le informazioni company ed è pronto per l'uso.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2026-05-29 UTC."],[],[]]