I am trying to integrate uber APIs on a website using javascript for getting info like cab fare or time required between 2 places.
I am very new to javascript. I am following the steps as shown on Github: https://github.com/shernshiou/node-uber#method-overview
It is the official recommendation from Uber.
When i am trying to do this :
var Uber = require('node-uber');
I get an error that can't find variable require.
I have tried to search on the internet but only lead that I have gotten is that 'require' is a function of node.js and I can use requirejs for getting the file but I haven't got any success yet.
Can someone help me?
via Akshay Chugh
No comments:
Post a Comment