Skip to content

Instantly share code, notes, and snippets.

@f0t0n
Created May 30, 2012 15:14
Show Gist options
  • Save f0t0n/2836917 to your computer and use it in GitHub Desktop.
Save f0t0n/2836917 to your computer and use it in GitHub Desktop.
Request example
array (
'apiKey' => 's0m3d0ma1n1d',
'domain' => 'qualify-test-site.local',
'userActions' =>
array (
0 =>
array (
'htmlElement' =>
array (
'element_id' => 'test-form',
'type' => 'FORM',
'xpath' => '/html/body/div/div/form',
'z_index' => 'auto',
'url' => 'http://qualify-test-site.local/',
),
'src' => 'http://qualify-test-site.local/',
'time' => '1338364788117',
'service_cookie' => '2d05128d-68eb-4b30-a811-d1d9cb6b09e7',
'event_type' => 'submit',
'formData' =>
array (
'username' => '',
'email' => '',
),
),
1 =>
array (
'htmlElement' =>
array (
'element_id' => '',
'type' => 'BODY',
'xpath' => '/html/body',
'z_index' => 'auto',
'url' => 'http://qualify-test-site.local/',
),
'x' => '257',
'y' => '183',
'src' => 'http://qualify-test-site.local/',
'time' => '1338365006900',
'service_cookie' => '2d05128d-68eb-4b30-a811-d1d9cb6b09e7',
'event_type' => 'click',
),
2 =>
array (
'htmlElement' =>
array (
'element_id' => 'email',
'type' => 'INPUT',
'xpath' => '/html/body/div/div/form/fieldset/ul/li[2]/input',
'z_index' => 'auto',
'url' => 'http://qualify-test-site.local/',
),
'x' => '889',
'y' => '222',
'src' => 'http://qualify-test-site.local/',
'time' => '1338390790218',
'service_cookie' => '2d05128d-68eb-4b30-a811-d1d9cb6b09e7',
'event_type' => 'click',
),
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment