I'm attempting to connect to an API that doesn't specifically have Nodejs documentation. I have a cURL example request (with my specific data removed) and I'm just wondering if anyone could help me understand how this would translate into a HTTP request.
Here's the cURL:
curl --tlsv1.2 -k -X POST https://[client code].erply.com/api/ \
-d "clientCode=[client code]&username=[username]&password=[password]&request=verifyUser"
Also an additional question that doesn't really need answering now but how would I go about storing things like username, password, and client code in a separate config file that doesn't get send to the user when the website is up (so they can't just steal my data).
Thanks!
via AshesAnonnnnn
No comments:
Post a Comment