Calling api from script

@AlexBowen
Only in the URL Node platform api crud - DreamFactory uses

platform.api.get(‘/db/_table/todo’ , ‘’ , function(body, response) {

while the rest of documentation repeatedly show something like below

var result = platform.api.get(‘/db/_table/todo’);
… then do something with result

That’s somehow confusing for newbie like me, I kept trying to debug why the latter doesn’t work until I found that URL and change the syntax to that.

Btw, we’re having problem with pre-process script, a little help here ? thanks.

1 Like