Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Insert excerpt
Version 2 greenID API (V2)
Version 2 greenID API (V2)
nopaneltrue

The API has four main methods:

  1. Pre

    registerVerification

     - this method passes a person's details to greenID.  The person's details are registered with greenID, and background checks may be performed, according to the configuration of the caller's greenID account.  If the verification attempt succeeds, then the details are returned to the caller.  Otherwise a list of data sources that will help the verification attempt succeed is returned (this is the same list returned by the getSources methodthe getSources method).

  2. getSources getSources - this method returns a list of data sources that will help the person's verification attempt succeed.
  3. getFields getFields - this method takes the name of a data source and returns the data fields that need to be collected from the person being verified in order to check their data against the particular data source.  This methods returns data entry fields in two ways:
    1. a list of data requirements including associated labels, validation rules, etc.; and
    2. an XHTML fragment that contains HTML FORM elements that, if displayed directly, will collect the required data.
  4. setFields setFields - this method takes the data that was collected from the person being verified for a particular data source (see getFields abovesee getFields above).  The data is checked against the data source and the verification attempt status is updated.  If the verification attempt has succeeded, then the details of the verification are returned.  If not, then the current verification status is returned, along with the same list of data sources that getSources would that getSources would return (this saves the caller a subsequent call to getSourcesto getSources).

Please refer to the examples below for some scenarios on how these methods can be strung together to take a person through the verification process.

...