jsonrpc2-erlang icon indicating copy to clipboard operation
jsonrpc2-erlang copied to clipboard

would it be possible to create a working example for how to use client side of this lib?

Open RomanShestakov opened this issue 10 years ago • 2 comments

I am especially interested in how to use client json rpc to call remote URL? would really appreciate if you could create a simple example

RomanShestakov avatar May 09 '14 11:05 RomanShestakov

Yes I know. There is no documentation for the client at all so far except some edoc in the source code. I'd appreciate a pull requests on this.

zuiderkwast avatar Nov 26 '14 12:11 zuiderkwast

To answer the question: In short, you would have to use httpc to for the HTTP call (assuming by remote URL you're talking about a HTTP URL). A wrapper for httpc in the form of a "transport fun" required by the jsonrpc2_client.

zuiderkwast avatar Nov 26 '14 12:11 zuiderkwast