# Calling api from script

**URL:** <https://community.dreamfactory.com/t/calling-api-from-script/3061>\
**Category:** Server-Side Scripting\
**Created:** [August 6, 2016, 4:07am UTC](https://community.dreamfactory.com/t/calling-api-from-script/3061 "2016-08-06T04:07:34Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![lewis](https://avatars.discourse-cdn.com/v4/letter/l/e9bcb4/32.png) [@lewis](https://community.dreamfactory.com/u/lewis)\
**Post date:** [August 15, 2016, 1:25pm UTC](https://community.dreamfactory.com/t/calling-api-from-script/3061/10 "2016-08-15T13:25:17Z")

</div>

@AlexBowen  
Only in the URL [Node platform api crud - DreamFactory](https://wiki.dreamfactory.com/DreamFactory/Tutorials/Node_platform_api_crud) 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](https://community.dreamfactory.com/t/is-that-possible-to-alter-the-request-resource-parameters-in-pre-processing-script/3090/2) ? thanks.

---

_[View the full topic](https://community.dreamfactory.com/t/calling-api-from-script/3061)._
