0

I have an API in php which receives a 10 digit number as variable and returns some data in JSON format. Example URL : www.exampletest.com/index.php?number=8000000000 . The next variable is current number plus one. Ie, 8000000001 and so on.The sequence ends at 9999999999. And when each call is made, the output data returns in JSON format and it is written into MYSQL database. Everything seems to good up to this.

Now my problem is for each "number", I have to make a call,ie, for 8000000000,8000000001...9999999999. My friend suggested me that using node is the right option. So can someone show me an example to automate calling my php API page using node.JS for each "Number" Variable?

Arun Green
  • 23
  • 1
  • 1
  • 7

1 Answers1

-2

I recommend the "request" library for nodejs.

the readme has a few examples for easy setup.

eosterberg
  • 1,422
  • 11
  • 11