Skip to content

JSC Gets An Overhaul

Compare
Choose a tag to compare
@derekdowling derekdowling released this 13 Dec 08:18
· 119 commits to master since this release

The client now returns the most accurate type it expects wherever possible making request parameters more explicit:

// old example
response, err := jsc.Get("http://api", "user", "")
list, err := response.GetList()
// new example
list, response, err := jsc.GetList("http://api", "user")