How to populate parse.com table via uploading csv/json file using javascript -



How to populate parse.com table via uploading csv/json file using javascript -

i need upload cvs/json file straight parse table populate info (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 phone call below curl command java script need create phone call client side website take 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 phone call upload file storage in parse. won't allow import database.

because want run programmatically website, you'll have utilize rest apis. you'll need run through each object want insert, , create rest api phone 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, take app want import info for, click on core in header, , in info section on left, you'll see "import" button. can upload csv or json file there. note: valid importing info new class - can't add together info existing class (bar user , installation think). if have empty class, delete , utilize file import create it.

parse have documentation on importing data, available @ their website.

javascript json curl parse.com

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -