Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all articles
Browse latest Browse all 5028

Calling api from script

$
0
0

@AlexBowen
Only in the URL http://wiki.dreamfactory.com/DreamFactory/Tutorials/Node_API_example 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.


Viewing all articles
Browse latest Browse all 5028

Trending Articles