Como faço para atualizar um dado ou adicionar dados ‘extras’ em um usuário já setado? fiz o teste como o exemplo do Rafael Pacheco mas não atualizou
(function () { window.onload = function () { var builder = new BlipChat() .withAppKey('dGVzdGVkZXNlbnZvbHZpbWVudG8xOjUxMTExMmE3LWQ3YzktNGU1ZS1hZDZmLTg1ODczMDBlZjZiYQ==') .withButton({ color: '#F00', icon: 'https://www.google.com.br/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png', }) .withAuth({ authType: BlipChat.DEV_AUTH, userIdentity: '1234567', userPassword: 'MTIzNDU2', }) .withAccount({ fullName: 'John Doe', email: '[email protected]', phoneNumber: '+15055034455', city: 'Decatur', extras: { plan: 'Gold', code: '1111' } }) .withEventHandler(BlipChat.LOAD_EVENT, function () { builder.sendCommand({ id: 12345679232, method: 'set', uri: '/contacts', type: 'application/vnd.lime.contact+json', resource: { identity: '[email protected]', name: 'John Doe with Last Name', gender: 'male', group: 'friends', extras: { plan: 'Gold', code: '1111' } } }) console.log('chat loaded') }) builder.build() } })();Como atualizar dados de usuário único já existente Chat Web?
Este tópico foi fechado para respostas.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
