Overview

Namespaces

  • Comprobo
    • Verify
      • Auth
      • Exceptions
      • HTTP

Classes

  • Api
  • Factory
  • State
  • User
  • Workflow
  • Overview
  • Namespace
  • Class

Class User

Namespace: Comprobo\Verify
Located at User.php
Methods summary
public
# __construct( array $config, Comprobo\Verify\Factory $factory, Comprobo\Verify\State $state )
public
# create( $firstName, $lastName, $email )
public string
# token( string $uuid )

Ask the authentication service for a token to impersonate a test-taking user. This token should be passed to the JavaScript SDK when displaying the block and does not replace the API token used for normal tasks.

Ask the authentication service for a token to impersonate a test-taking user. This token should be passed to the JavaScript SDK when displaying the block and does not replace the API token used for normal tasks.

Parameters

$uuid
the Comprobo user ID.

Returns

string
the user token

Throws

Comprobo\Verify\Exceptions\User
if the token cannot be requested or the service response is invalid
Comprobo\Verify\Exceptions\Auth
If the API has not yet been authenticated

See

Comprobo\Verify\Api::authenticate
public boolean
# assignWorkflow( string $userId, string $workflowId )

Parameters

$userId
Comprobo user ID
$workflowId
Comprobo workflow ID

Returns

boolean
true

Throws

Comprobo\Verify\Exceptions\Auth
If the API has not yet been authenticated

See

Comprobo\Verify\Api::authenticate
API documentation generated by ApiGen