So basically after looking at the api documentation for c0gnito.cc I tried setting up calling the api and trying to post data, I hope what I did makes enough sense but how would I post this data in Node.js?
"url": "api.c0gnito.cc/generate-keys",
"headers": {
 "privateKey": "privatekey",
 "numberOfLicenses": "1",
 "expiryTime": "24",
 "customMask": "HITLIST-xxxx-xxxx-xxxx"
}
EDIT: I do not understand how I can POST this data, i would appreciate an example, an example to post data as shown above.


request()module is now deprecated and not recommended for new projects. You can see a list of alternatives here. My favorite isgot().