Issues a lightweight, unauthenticated request against the server's ping
endpoint. This tests connectivity only - use hb_check_credentials()
to test whether the client's credentials are accepted.
Value
The client, invisibly. Errors with a harbour_error_http
condition if the server cannot be reached, and with the class of the
answer - harbour_error_not_found for a 404, say - if it answers
with an error.
Details
Returns the client invisibly, so it composes:
client |> hb_ping() |> hb_read_table("Samples").
Examples
# needs a SeaTable server and an API token
if (FALSE) { # \dontrun{
client <- hb_client()
hb_ping(client)
} # }