Forked from randallknutson/gist:de6d92ebe55765d44bdf
Last active
September 18, 2015 15:35
-
-
Save zackurben/5c67b5fa2f4216ec2a31 to your computer and use it in GitHub Desktop.
Index Example
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/api/{resourcename}/submission?limit=20', | |
method: 'GET', | |
headers: { | |
'x-jwt-token': token, | |
'Range-Unit': 'items', | |
'Range': '0-20' | |
} | |
} | |
function (error, response, body) { | |
if (!error && response.statusCode == 200) { | |
console.log(body); | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment