node-urlresolver-api
node-urlresolver-api copied to clipboard
How to use the api?
Hi there, i was wondering on how to use the api? What exact data should pe posted and in what form to the api? I tried using the given example in Readme.md But wasn't clear enough. Please help. Thank you
I have the same issue here...
a little more explanation on accessing the api would be good...
for example if i put the files in a folder at mydomain.com/api then how do i access that api cause making a post with correct data in android is not working.... :(
thanks
########### EDIT ###########
So after changing the port in app.js and allowing port in ufw i now get this error when making the post request>>>
TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object. at Function.Buffer.from (buffer.js:183:11) at exports.index (/var/www/html/node-urlresolver-api/servers/bitporno.js:14:29) at Layer.handle [as handle_request] (/var/www/html/node-urlresolver-api/node_modules/express/lib/router/layer.js:95:5) at next (/var/www/html/node-urlresolver-api/node_modules/express/lib/router/route.js:137:13) at Route.dispatch (/var/www/html/node-urlresolver-api/node_modules/express/lib/router/route.js:112:3) at Layer.handle [as handle_request] (/var/www/html/node-urlresolver-api/node_modules/express/lib/router/layer.js:95:5) at /var/www/html/node-urlresolver-api/node_modules/express/lib/router/index.js:281:22 at Function.process_params (/var/www/html/node-urlresolver-api/node_modules/express/lib/router/index.js:335:12) at next (/var/www/html/node-urlresolver-api/node_modules/express/lib/router/index.js:275:10) at Function.handle (/var/www/html/node-urlresolver-api/node_modules/express/lib/router/index.js:174:3)
See full app created for Android with this API here: https://github.com/lscofield/url-resolver-android-simple