Labs/Contacts/ContentAPI: Difference between revisions

Line 83: Line 83:
** <tt>getPhotos(callback)</tt>: a function that, when invoked, returns an array of photo objects through the callback (see below)
** <tt>getPhotos(callback)</tt>: a function that, when invoked, returns an array of photo objects through the callback (see below)


* <tt>picturesOf(callback)</tt> invokes the callback, passing an array of objects representing photos of the contact.  The objects are photos, see below.
* <tt>picturesOf(callback)</tt> produces a list of pictures by invoking a callback repeatedly with an array of pictures.  The fields of each picture are:
 
* The picturesOf method produces a list of pictures The fields of each picture are:
** <tt>name</tt>: optional; a filename or label for the picture
** <tt>name</tt>: optional; a filename or label for the picture
** <tt>homeURL</tt>: the URL of a page containing more detail about a picture
** <tt>homeURL</tt>: the URL of a page containing more detail about a picture
11

edits