Vz.vcard

From VZ Developer Wiki
Jump to: navigation, search

General Guidelines | XML Specification | Features | Views | JavaScript API | REST API | Tutorials | OAuth


vz.vcard

VZ specific methods for vcard handling.

Methods

vz.vcard.update

vz.vcard.update(callback, fields)
renders the editing dialog for the user's current vcard, so that he can edit (e.g. to provide further information)
Parameters
callback - callback which is called when the user submitted his changes
fields - optional array of additional fields as specified in OpenSocial_RequiredFields that should be requested, if no additional fields are specified the vcard dialog will be launched with the current available fieldset for the app

vz.vcard.getPermissions

vz.vcard.getPermissions(userId, callback)
retrieve privacy permissions of gadget installation
Parameters
userId - single userId to fetch permissions for. You can use any valid id or the strings "VIEWER" and "OWNER".
callback - callback which is called with the currently set privacy settings as first parameter

vz.vcard.permissions

All of the possible privacy permissions the current gadget installation has

vz.vcard.permissions.PRIVACY_VIEW_ALL

vz.vcard.permissions.PRIVACY_VIEW_FRIENDS

vz.vcard.permissions.PRIVACY_VIEW_NONE

Examples

vz.vcard.update(function() {
   alert('Vcard data is now updated');
});


Help.png

This tutorial will give you more examples or information on these features:
Lesson 16: Request additional data from your user


VZspecific APIs

gadgets.cache

gadgets.tracking

vz.advertising

vz.invite

vz.embed

vz.flash

vz.vcard