Evening all,
I just have a quick questions about bulk importing via the rest api. I've tried various methods to automate looping through a file and adding the results to Parse backend without success. One example:
curl -X POST \ -H "X-Parse-Application-Id: Removed" \ -H "X-Parse-REST-API-Key: Removed" \ -H "Content-Type: application/json" \ --data '{
"requests": [
{
"method": "POST",
"path": "/1/classes/testnew",
"body": {
@Posts.json
}
}
]
}' \ https://api.parse.com/1/batch
I've tried many other Curl commands and also checking the network tab in parse when uploading a .json file, it looks like when you click the upload it is using the form multipart command to upload the data in a .json file. Does anyone know of a way to automate uploading of data from a .json file into parse without having to manually execute the batch/individual calls as described in the rest api documentation via cUrl?
Any help would be seriously appreciated :-).
Thanks,
Gerard