restclient.el icon indicating copy to clipboard operation
restclient.el copied to clipboard

Transform api call to function

Open yhvh opened this issue 8 years ago • 1 comments

I'd like to experiment in restclient and then map this to a function I can save and use

yhvh avatar Feb 07 '17 13:02 yhvh

You can use restclient-copy-curl-command as template to produce such transformer for your http of choice. I presume that you wouldn't want to rely on restclient.el's internals in generated code, and would use either raw url.el calls or request.el. I'd recommend the latter, it's much nicer in practice.

I don't like the idea of such functionality in restclient.el core though. It's better be a separate module that I'd be happy to advertise in README. I barely accepted curl version mainly due to curl's ubiquity, but this one is really niche thing.

pashky avatar Feb 07 '17 13:02 pashky