Skip to content

Instantly share code, notes, and snippets.

View kyletolle's full-sized avatar

Kyle Tolle kyletolle

View GitHub Profile
@kyletolle
kyletolle / classification_set.update-parsed.txt
Last active December 23, 2015 06:59
classification_set.update sample event payload for Fulcrum Webhooks
{
id: "86bd5c0b-da59-4fe8-bc82-664eb35fc456",
type: "classification_set.update",
owner_id: "00053caf-4b6e-4c86-88b6-64695895dffe",
data: {
name: "Building Type",
description: "Categories for building types.",
id: "ff22c928-bb41-4360-acc1-aff44eeaa702",
created_at: "2013-09-21T19:27:06Z",
updated_at: "2013-09-21T19:27:25Z",
@kyletolle
kyletolle / classification_set.create-parsed.txt
Last active December 23, 2015 06:59
classification_set.create sample event payload for Fulcrum Webhooks
{
id: "0e7d69c7-94e9-40e2-b3b7-802c88c5fb47",
type: "classification_set.create",
owner_id: "00053caf-4b6e-4c86-88b6-64695895dffe",
data: {
name: "Building Type",
description: "Categories for building types.",
id: "ff22c928-bb41-4360-acc1-aff44eeaa702",
created_at: "2013-09-21T19:27:06Z",
updated_at: "2013-09-21T19:27:06Z",
@kyletolle
kyletolle / form.delete-parsed.txt
Last active December 23, 2015 06:58
form.delete sample event payload for Fulcrum Webhooks
{
id: "42edfb16-cb13-41e1-857c-bbba57e7b072",
type: "form.delete",
owner_id: "00053caf-4b6e-4c86-88b6-64695895dffe",
data: {
name: "Intersections",
description: "Intersection in the city of Colorado Springs.",
bounding_box: null,
record_title_key: "94f8",
status_field: { },
@kyletolle
kyletolle / record.delete-parsed.txt
Last active December 23, 2015 06:58
record.delete sample event payload for Fulcrum Webhooks
{
id: "1371c81d-367b-45d3-9f7c-91da5de9518e",
type: "record.delete",
owner_id: "00053caf-4b6e-4c86-88b6-64695895dffe",
data: {
status: null,
version: 3,
id: "7553fd44-78bb-41eb-a453-8b301ae5e52e",
form_id: "295eda4a-7795-4881-9f62-085a930b356e",
project_id: null,
@kyletolle
kyletolle / record.update-parsed.txt
Last active December 23, 2015 06:58
record.update sample event payload for Fulcrum Webhooks
{
id: "1908484a-fc1b-4c0b-ba79-ddeb83790637",
type: "record.update",
owner_id: "00053caf-4b6e-4c86-88b6-64695895dffe",
data: {
status: null,
version: 2,
id: "7553fd44-78bb-41eb-a453-8b301ae5e52e",
form_id: "295eda4a-7795-4881-9f62-085a930b356e",
project_id: null,
@kyletolle
kyletolle / record.create-parsed.txt
Last active December 23, 2015 06:58
record.create sample event payload for Fulcrum Webhooks
{
id: "8faf0917-1987-4ac6-bcc7-4fbf71d191f3",
type: "record.create",
owner_id: "00053caf-4b6e-4c86-88b6-64695895dffe",
data: {
status: null,
version: 1,
id: "7553fd44-78bb-41eb-a453-8b301ae5e52e",
form_id: "295eda4a-7795-4881-9f62-085a930b356e",
project_id: null,
@kyletolle
kyletolle / form.update-parsed.txt
Last active January 31, 2020 06:23
form.update sample event payload for Fulcrum Webhooks
{
id: "dfb667fb-f192-4d6d-8794-e89ece5db6ed",
type: "form.update",
owner_id: "00053caf-4b6e-4c86-88b6-64695895dffe",
data: {
name: "Intersections",
description: "Intersection in the city of Colorado Springs.",
bounding_box: null,
record_title_key: "94f8",
status_field: { },
@kyletolle
kyletolle / form.create-parsed.txt
Last active December 23, 2015 06:49
form.create sample event payload for Fulcrum Webhooks
{
id: "f4ef6656-172c-4c09-9808-f07e03357519",
type: "form.create",
owner_id: "00053caf-4b6e-4c86-88b6-64695895dffe",
data: {
name: "Intersections",
description: "Intersection in Colorado Springs",
bounding_box: null,
record_title_key: "94f8",
status_field: { },
@kyletolle
kyletolle / node-http-post-listener.js
Created September 11, 2013 22:56
A simple http server that listens for POST events at port 9000 and will print out the data it receives. Tweak the statusCode if you want to return something else like 500. This is useful for setting up as the url for a webhook and viewing/verifying the data that gets sent to that URL.
var app = require('http').createServer(handler);
var statusCode = 200;
app.listen(9000);
function handler (req, res) {
var data = '';
if (req.method == "POST") {
req.on('data', function(chunk) {
@kyletolle
kyletolle / .pryrc
Created August 15, 2013 20:33
my .pryrc
# Load plugins (only those I whitelist)
Pry.config.should_load_plugins = false
# Launch Pry with access to the entire Rails stack.
# If you have Pry in your Gemfile, you can pass: ./script/console --irb=pry instead.
# If you don't, you can load it through the lines below :)
rails = File.join Dir.getwd, 'config', 'environment.rb'
if File.exist?(rails) && ENV['SKIP_RAILS'].nil?
require rails