https://github.com/keisukeyamashita/erlang-jsonrpc
This repository is for JSONRPC2.0 client for erlang
https://github.com/keisukeyamashita/erlang-jsonrpc
Last synced: 7 months ago
JSON representation
This repository is for JSONRPC2.0 client for erlang
- Host: GitHub
- URL: https://github.com/keisukeyamashita/erlang-jsonrpc
- Owner: KeisukeYamashita
- License: apache-2.0
- Created: 2018-06-18T03:21:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-21T02:56:56.000Z (over 7 years ago)
- Last Synced: 2024-10-05T12:24:25.198Z (about 1 year ago)
- Language: Erlang
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# erlang-jsonrpc
[](https://opensource.org/licenses/Apache-2.0)
[](https://circleci.com/gh/KeisukeYamashita/erlang-jsonrpc)
erlang-jsonrpc is a erlang library use for interacting to your server with JSON-RPC.
## Build
Compile with this command.```
$ rebar3 compile
```## Test
```
rebar3 eunit
```## Usage
```erlang
Url = "https://localhost.com",
Client = erjsonrpc:newJSONRPCClient(Url),
Method = "getUser",
Params = #{
id => 1,
name => "KeisukeYamashita",
},
Response = erjsonrpc:call(Client, Method, Params).
```## Contribution
To contribute, just send us a pull request!
If it is valid, you will be added on the contribution doc in `/doc/contributor.md` .## License
Copyright 2018 Keisuke Yamashita.Licensed under the Apache 2.0 license.