reset password
Author Message
sikandarahmad
Posts: 19
Posted 22:19 Oct 15, 2015 |

I am able to install numbersapi using the following command.

npm install numbersapi --save.

But when i am calling it math method getting the following error.

numbersapi_request(number, 'trivia', callback, error_callback);

    ^

ReferenceError: numbersapi_request is not defined
    at Object.exports.trivia (C:\calstate la\Fall 2015\CS 454\HomeWorks\hw3\node_modules\numbersapi\lib\numbers-node.js:32:5)
    at Object.<anonymous> (C:\calstate la\Fall 2015\CS 454\HomeWorks\hw3\node_modules\numbersapi\examples\example.js:3:9)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:475:10)
    at startup (node.js:117:18)
    at node.js:951:3

nextmatrixman
Posts: 57
Posted 22:49 Oct 15, 2015 |

Based on my experience, all you have to do is call the number api website with some URL variations. There's nothing to be installed for that.

Last edited by nextmatrixman at 22:50 Oct 15, 2015.
ngosrani
Posts: 31
Posted 21:07 Oct 16, 2015 |

You definitely don't have to save/install numbersapi .It's just you have to get the website data in JSON format to make request and receive responses.

304395109
Posts: 10
Posted 21:57 Oct 16, 2015 |

So, Niket just to make sure, we need to hit the url to recieve data right??