Update service tester(accountchooser.COM is used. Switch to accountchooser.BIZ)

See tester for Select, or Store service.

Please input the account information:
Display name:  
Photo URL:  
Provider ID:  

Below is the code used in the demo.

See client library doc for API details. Or learn more from Account Chooser Working Group.
function done(result, error) {
  if (result) {
    alert('receive result: ' + JSON.stringify(result));
  } else {
    alert('receive error: ' + JSON.stringify(error));

var client = window.accountchooser.CdsClient.init({
  popupMode: false,
  popupWidth: 640,
  popupHeight: 480,
  clientCallbackUrl: window.location.protocol + '//ac-test.appspot.com/update.htm',
  callbacks: {
    update: done

var update = function() {
  var account = {
     email: jQuery('#email').val(),
     displayName: jQuery('#displayName').val(),
     photoUrl: jQuery('#photoUrl').val(),
     providerId: jQuery('#providerId').val()
  var cdsOptions = {language: jQuery('#language').val()};
  client.update(account, cdsOptions);