Skip to content

Instantly share code, notes, and snippets.

@zackurben
zackurben / gist:51ee9b92c26ad8a7c290
Last active September 18, 2015 15:21 — forked from randallknutson/gist:bbe8dd3099234a73c716
User Authentication Example
var request = require('request');
request.post(
'https://{projectname}.form.io/api/{userresource}/{loginform}/submission',
{
data: {
'{userresource}.{emailfield}': email,
'{userresource}.{passwordfield}': password
}
},
var request = require('request');
request.post(
'https://formio.form.io/api/user/login/submission',
{
data: {
'user.email': email,
'user.password': password
}
},
var request = require('request');
request(
{
url: 'https://{projectname}.form.io/api/{resourcename}',
method: 'POST',
headers: {
'x-jwt-token': token
},
form: {
var request = require('request');
request(
{
url: 'https://{projectname}.form.io/api/{resourcename}/submission/{submissionId}',
method: 'DELETE',
headers: {
'x-jwt-token': token
}
}
var request = require('request');
request(
{
url: 'https://{projectname}.form.io/api/{resourcename}/submission?limit=20',
method: 'GET',
headers: {
'x-jwt-token': token,
'Range-Unit': 'items',
'Range': '0-20'
var request = require('request');
request(
{
url: 'https://{projectname}.form.io/api/{resourcename}/submission/{submissionId}',
headers: {
'x-jwt-token': token
}
}
function (error, response, body) {
var request = require('request');
request(
{
url: 'https://{projectname}.form.io/api/{resourcename}/submission/{submissionId}',
method: 'PUT',
headers: {
'x-jwt-token': token
},
form: {
@zackurben
zackurben / ffmpeg.md
Created November 8, 2017 04:34 — forked from neilrenicker/ffmpeg.md
How to convert an m4a file to an mp3 using ffmpeg

Convert an m4a file to an mp3 using ffmpeg

  • Install ffmpeg using homebrew:
brew install ffmpeg
  • convert the file: