Labs/Sprints/People: Difference between revisions

Jump to navigation Jump to search
→‎API: portable contacts
(→‎API: import people/modules/people.js)
(→‎API: portable contacts)
Line 54: Line 54:
</pre>
</pre>


In all cases the structure of the object will only be loosely defined, but could look something like this:
The object to pass in to <tt>add</tt> and <tt>update</tt> and returned by <tt>find</tt> are [http://portablecontacts.net/draft-spec.html#schema Portable Contacts objects]. There are two additional optional singular fields: <tt>moz_guid</tt> and <tt>moz_schema</tt>.
 
<pre class="brush:js;toolbar:false;">
{"firstname": "John",
"lastname": "Doe",
"identities": [
  {"type": "gmail",
    "firstname": "Johnnie",
    "email": "jdoe@gmail.com", ...}
]
}
</pre>


== Performance ==
== Performance ==
385

edits

Navigation menu