Skip to content

Instantly share code, notes, and snippets.

@arturo-c
Last active January 4, 2016 00:49
Show Gist options
  • Save arturo-c/8544271 to your computer and use it in GitHub Desktop.
Save arturo-c/8544271 to your computer and use it in GitHub Desktop.
Webform data pushed as webhooks.
{
"event_data"=>
{
"webform_submission"=>
{
"user_uuid"=>User uuid of the webform submission (string),
"submission_id"=>Submission id (integer),
"data"=>
{
"profile__field_phone__profile"=>
{
"cid"=>15,
"value"=>Phone number (string)
},
"profile__field_lastname__profile"=>
{
"cid"=>2,
"value"=>Last Name (string)
},
"profile__field_address_postal_code__profile"=>
{
"cid"=>12,
"value"=>Zip Code (string)
},
"profile__field_address_city__profile"=>
{
"cid"=>10,
"value"=>City (string)
},
"profile__field_birth_date__profile"=>
{
"cid"=>4,
"value"=>Date (string)
},
"profile__field_address_province__profile"=>
{
"cid"=>11,
"value"=>State (string)
},
"profile__field_address_street__profile"=>
{
"cid"=>8,
"value"=>Address (string)
},
"profile__field_firstname__profile"=>
{
"cid"=>1,
"value"=>First Name (string)
},
"profile__field_email__profile"=>
{
"cid"=>5,
"value"=>Email (string)
},
"profile__field_address_country__profile"=>
{
"cid"=>13,
"value"=>Country (string)
},
"org__sequential_id__org_webform"=>
{
"cid"=>6,
"value"=>External Id (integer)
}
}
},
"uuid"=>User uuid of user who is adding the submission,
"submissions"=>
{
"profile__field_lastname__profile"=>Last Name of the user who is doing the submission.
"profile__field_firstname__profile"=>First Name of the user who is doing the submission.
},
"webhook_type"=>"user_adds_submission",
"group"=>
{
"organization_id"=>Toplevel organization group uuid (array),
"group_type"=>Type of group, e.g. 'Team' (string),
"uuid"=>Uuid of group (string),
"description"=>Description of the group (string),
"logo"=>Group logo (string),
"group_above"=>Group directly above uuid (string),
"url"=>Url for group (string),
"name"=>Name of group (string),
"group_category"=>Categorie(s) of group (array)
},
"webform"=>
{
"uuid"=>Webform uuid (string)
"title"=>Webform title (string)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment