11
edits
Line 33: | Line 33: | ||
* <tt>options</tt> is an object that expresses the various options allowed in the W3C contacts API. The options allowed are "filter", "multiple", "limit", and "updatedSince". "filter" allows for filtering of contacts based on pattern matching. "multiple" allows for multiple contacts to be returned. "limit" specifies a limit of contacts to be returned. Finally, "updatedSince" specifies only contacts that have been updated after a certain time. More in-depth explanations of the options are detailed in the W3C contacts spec. | * <tt>options</tt> is an object that expresses the various options allowed in the W3C contacts API. The options allowed are "filter", "multiple", "limit", and "updatedSince". "filter" allows for filtering of contacts based on pattern matching. "multiple" allows for multiple contacts to be returned. "limit" specifies a limit of contacts to be returned. Finally, "updatedSince" specifies only contacts that have been updated after a certain time. More in-depth explanations of the options are detailed in the W3C contacts spec. | ||
For example, a options of <tt>{ filter:"paul", multiple:true, limit:5, updatedSince:"2009-10-10T12:00:00-05:00" }</tt> will include only five contacts where one of the fields requested contains the substring "paul" (case insensitive) and has been updated after October 10, 2009. | For example, a options of <tt>{ filter:"paul", multiple:true, limit:5, updatedSince:"2009-10-10T12:00:00-05:00" }</tt> will include only five contacts where one of the fields requested contains the substring "paul" (case insensitive) and the contact has been updated after October 10, 2009. | ||
== Contact Schema == | == Contact Schema == |
edits