Utils
Right now, the library offers only one utility method, but more could be added in the future if necessary.
DownloadJson
If you need to download JSON from an API without the need to pass headers or cookies to it,
you can use the HttpGetJson
method.
It has two overloads:
The first one assumes that you pass the full URL, encoding the query string yourself:
The second one assumes that you pass the base URL and the query parameter value separately. In this case, the query parameter will be automatically encoded:
Both overloads accept a type parameter that represents the type you want to deserialize the JSON into.