Skip to content

gohttp/jsonrpc-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonrpc-client

Simple rpc client for json-rpc/http.

View the docs.

Example

c := jsonrpc.NewClient("http://localhost:4000/rpc")
err := c.Call("Coupon.GetById", map[string]string{"id": "trial"}, &res)
c, _ := jsonrpc.NewClientWithOptions("http://localhost:4000/rpc", jsonrpc.UserAgent("rpc_bot/1.0"))
err := c.Call("Coupon.Apply", map[string]string{"account_id": "abcd1234", "coupon_id": "trial"}, &res)

License

MIT

About

Simple rpc client for json-rpc/http.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages