code: function fetchData(token) {
      sdk.user.me(token)
          .then(function(me) {
              console.log('You are using the API as ' + me.name);
              return sdk.user.contacts(token, me.id);
          })
          .then(function(contacts) {
              console.log('Your contacts: ' + contacts.subList.map(function(cur) {
                  return cur.name;
              }).join(', '));
          })
          .catch(function(error) {
              console.log('Error fetching me/contacts', error);
          });
  
      /*
       * Gets some data of the users with ID 0 and 1 in parallel and
       * prints them on stdout.
       */
      sdk.user.id(token, 'PROFILE,0')
          .then(function(user) {
              console.log('User with ID 1 is ' + user.name);
          })
          .catch(function(error) {
              console.log(error);
          });
      sdk.user.id(token, 'PROFILE,1')
          .then(function(user) {
              console.log('User with ID 1 is ' + user.name);
          })
          .catch(function(error) {
              console.log(error);
          });
  }
docs: /*
  Gets the current user and then the user's contacts and prints the names on
  stdout.
  
  This is done sequentially as a promise chain.