- Install ffmpeg using homebrew:
brew install ffmpeg
- convert the file:
brew install ffmpeg
var request = require('request'); | |
request( | |
{ | |
url: 'https://{projectname}.form.io/api/{resourcename}/submission/{submissionId}', | |
method: 'PUT', | |
headers: { | |
'x-jwt-token': token | |
}, | |
form: { |
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?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}', | |
method: 'DELETE', | |
headers: { | |
'x-jwt-token': token | |
} | |
} |
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.post( | |
'https://formio.form.io/api/user/login/submission', | |
{ | |
data: { | |
'user.email': email, | |
'user.password': password | |
} | |
}, |
var request = require('request'); | |
request.post( | |
'https://{projectname}.form.io/api/{userresource}/{loginform}/submission', | |
{ | |
data: { | |
'{userresource}.{emailfield}': email, | |
'{userresource}.{passwordfield}': password | |
} | |
}, |
The service is targeted at site designers; When you make a clients website, you can tag fields you want | |
them to be able to edit (using data attributes) and make the corresponding elements on our service. | |
When a site is loaded, it uses our api to display the most recent data. So the designer needs to | |
include our generated js as a script, mark the fields the user can edit, and make the models on our | |
site. | |
A client can login (using creds made for their website) and update whatever fields have been mapped by | |
the designer, so the designer doesnt get constantly asked to update/add content after the site has been | |
completed. |