Skip to content

Instantly share code, notes, and snippets.

@sgnl
Last active March 28, 2018 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgnl/4c05e861be5162cc395342f95f7414ae to your computer and use it in GitHub Desktop.
Save sgnl/4c05e861be5162cc395342f95f7414ae to your computer and use it in GitHub Desktop.
Wootric webhooks data shapes

Decline event shape

{
  "timestamp": "2018-03-28 15:06:23 -0700",
  "event_name": "created",
  "decline": {
    "updated_at": "2018-03-28 15:06:20 -0700",
    "survey_id": "XXXXXXXXX",
    "origin_url": "http://localhost:3000/",
    "ip_address": "0.0.0.0",
    "id": "XXXXXX",
    "external_id": null,
    "end_user_properties": null,
    "end_user_id": "XXXXXXXX",
    "email": "ray@wealthfit.com",
    "created_at": "2018-03-28 15:06:20 -0700"
  }
}

Score event shape

{
  "timestamp": "2018-03-28 15:12:06 -0700",
  "response": {
    "updated_at": "2018-03-28 15:11:55 -0700",
    "text": null,
    "survey_id": "XXXXXXXXXX",
    "score": "10",
    "origin_url": "http://localhost:3000/",
    "ip_address": "0.0.0.0",
    "id": "XXXXXXXX",
    "external_id": null,
    "excluded_from_calculations": "false",
    "end_user_properties": null,
    "end_user_id": "XXXXXXXX",
    "email": "ray@wealthfit.com",
    "created_at": "2018-03-28 15:11:55 -0700"
  },
  "event_name": "created"
}

Feedback update event shape

{
  "timestamp": "2018-03-28 15:25:07 -0700",
  "response": {
    "updated_at": "2018-03-28 15:25:03 -0700",
    "text": "updated event?",
    "survey_id": "207594715",
    "score": "10",
    "origin_url": "http://localhost:3000/",
    "ip_address": "76.173.180.32",
    "id": "15181514",
    "external_id": null,
    "excluded_from_calculations": "false",
    "end_user_properties": null,
    "end_user_id": "62707387",
    "email": "ray@wealthfit.com",
    "created_at": "2018-03-28 15:24:51 -0700"
  },
  "event_name": "updated"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment