This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"event":[{"query":{"id":[{"timestamp_usec":"1372627940900257"}],"query_text":"REDACTED"}},{"query":{"id":[{"timestamp_usec":"1372627927409976"}],"query_text":"REDACTED"}},{"query":{"id":[{"timestamp_usec":"1372619785894187"}],"query_text":"REDACTED"}},{"query":{"id":[{"timestamp_usec":"1372619582648270"}],"query_text":"REDACTED"}},{"query":{"id":[{"timestamp_usec":"1372618464075008"}],"query_text":"REDACTED"}},{"query":{"id":[{"timestamp_usec":"1372618457133631"}],"query_text":"REDACTED"}},{"query":{"id":[{"timestamp_usec":"1372585711374610"}],"query_text":"REDACTED"}},{"query":{"id":[{"timestamp_usec":"1372585609870321"}],"query_text":"REDACTED"}},{"query":{"id":[{"timestamp_usec":"1372585500584346"}],"query_text":"REDACTED"}},{"query":{"id":[{"timestamp_usec":"1372585449786168"}],"query_text":"REDACTED"}},{"query":{"id":[{"timestamp_usec":"1372585279698281"}],"query_text":"REDACTED"}},{"query":{"id":[{"timestamp_usec":"1372585122556796"}],"query_text":"REDACTED"}},{"query":{"id":[{"timestamp_usec":"1372585 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
// Allow cert errors, I don't care while scraping | |
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0'; | |
const through2 = require('through2') | |
const JSONStream = require('JSONStream') | |
const got = require('got') | |
const Xray = require('x-ray') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Converter = require('csvtojson').Converter | |
var converter = new Converter({}); | |
var request = require('superagent'); | |
converter.on("end_parsed", function (jsonArray) { | |
jsonArray.map(function(contact){ | |
var data = { | |
data: { | |
fullName: contact.first_Name + ' ' + contact.last_Name, | |
company: contact.Company, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
request( | |
{ | |
url: 'https://{projectname}.form.io/{resourcename}/submission?limit=20', | |
method: 'GET', | |
headers: { | |
'x-jwt-token': token, | |
'Range-Unit': 'items', | |
'Range': '0-20' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
request( | |
{ | |
url: 'https://{projectname}.form.io/{resourcename}/submission/{submissionId}', | |
method: 'DELETE', | |
headers: { | |
'x-jwt-token': token | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
request( | |
{ | |
url: 'https://{projectname}.form.io/{resourcename}/submission/{submissionId}', | |
method: 'PUT', | |
headers: { | |
'x-jwt-token': token | |
}, | |
form: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
request( | |
{ | |
url: 'https://{projectname}.form.io/{resourcename}/submission/{submissionId}', | |
headers: { | |
'x-jwt-token': token | |
} | |
} | |
function (error, response, body) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
request( | |
{ | |
url: 'https://{projectname}.form.io/{resourcename}/submission', | |
method: 'POST', | |
headers: { | |
'x-jwt-token': token | |
}, | |
form: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
request.post( | |
'https://{projectname}.form.io/{loginform}/submission', | |
{ | |
data: { | |
'{userresource}.{emailfield}': email, | |
'{userresource}.{passwordfield}': password | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
request.post( | |
'https://formio.form.io/user/login/submission', | |
{ | |
data: { | |
'user.email': email, | |
'user.password': password | |
} | |
}, |