Communicating with an API doing POSTs/GETs


Is there any best practices, recommended methods around communicating with an API external to this atom-shell app? Would ajax be usable here or is there something better for atom-shell? I need to post data with headers and all that to an api… any help would be awesome.




Since node is fully supported this is really a node question and there are a million solutions out there. I highly recommend the request package.


As @mark_hahn said, the request package is almost all you need, I’ve successfully implemented Oauth AJAX communications exclusively with request (no wrapper, oauth lib or else). And by using its stream API you can implement progress events or download of heavy data right on disk using a simple one-liner.


Yeah, I starting looking at the ‘request’ package and it is exactly what I needed. Thanks for the help.