Created
December 1, 2016 14:09
-
-
Save jpipas/bc5a0c2a388229a5a6ca7c5bc9e4e240 to your computer and use it in GitHub Desktop.
Pseudo Code
This file contains hidden or 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 dataresults; | |
function getResults(restURL) { | |
$.ajax({ | |
url: restUrl, | |
type: 'GET', | |
dataType: 'JSON', | |
headers: { | |
"accept":"application/json;odata=verbose", | |
"X-RequestDigest": $("#__REQUESTDIGEST").val() | |
}, | |
success: funcation(data) { | |
dataresults = dataresults.concat(data) | |
if(data.__next){ | |
getResults(data.__next); | |
} | |
}); | |
} | |
// do something with dataresults |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment