APIClient.requestJSON

Makes a HTTP request to the API (with string body), returning an APIResponse

  1. APIResponse requestJSON(HTTPMethod method, U url)
  2. APIResponse requestJSON(HTTPMethod method, U url, VibeJSON obj)
  3. APIResponse requestJSON(HTTPMethod method, U url, string data, Duration timeout)
    class APIClient
    requestJSON
    (
    HTTPMethod method
    ,,
    string data
    ,
    Duration timeout = 15.seconds
    )

Parameters

method HTTPMethod

HTTPMethod to use when requesting

url U

URL to make the request on

data string

string contents of the body

timeout Duration

HTTP timeout (default is 15 seconds)

Meta