Description Usage Details Methods
Class representing the case law API
Class representing the case law API
1 |
This class allows a user to interact with a case law API and provides utility functions for GETs including cursor pagination and the specifics of the case law query parameter structure
The constructor respects CASE_LAW_API_KEY environment variable if set, and will use it to authorize all requests
new()
cl_client$new(base = "https://api.case.law", version = "v1")
raise_error()
cl_client$raise_error(res)
add_auth()
cl_client$add_auth()
add_url_params()
cl_client$add_url_params(path, params)
GET_PAGES()
cl_client$GET_PAGES( path, writer = httr::write_memory(), parser = "parsed", limit = Inf )
GET()
cl_client$GET(path, writer = httr::write_memory(), parser = "parsed")
GET_URL()
cl_client$GET_URL(url, writer = httr::write_memory(), parser = "parsed")
GET_RESULT_URL()
cl_client$GET_RESULT_URL(url, writer = httr::write_memory())
clone()
The objects of this class are cloneable with this method.
cl_client$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.