How to populate parse.com table via uploading csv/json file using javascript -
i need upload cvs/json file directly parse table populate data (bulk insert) client side website
as per parse documentation, seems below curl command can upload file it's not clear how point specific parse table.
is there equivalent code snippet call below curl command java script need make call client side website accept cvs/json file input , load data
curl -x post \ -h "x-parse-application-id: x4ja65sbrnuk88zgbaqgiur9fwdnvk1qzsszehzu" \ -h "x-parse-rest-api-key: eqvlrkxqrsbilubm6py3vvlzkm9a4v0n63cpwrqa" \ -h "content-type: text/plain" \ -d 'hello, world!' \ https://api.parse.com/1/files/hello.txt
that rest call upload file storage in parse. won't let import database.
because want run programmatically website, you'll have use rest apis. you'll need run through each object want insert, , make rest api call insert in database. can save api hits batching them together, in blocks of 50.
there manual solution, might simpler if it's once-off setup of initial data. can opening web browser, log parse.com account, choose app want import data for, click on core in header, , in data section on left, you'll see "import" button. can upload csv or json file there. note: valid importing data new class - can't add data existing class (bar user , installation think). if have empty class, delete , use file import create it.
parse have documentation on importing data, available @ their website.
Comments
Post a Comment