end_session: End Database Session

View source: R/session.R

end_sessionR Documentation

End Database Session

Description

Ends the session for an certain token.

Usage

end_session(
  session,
  token = session$unToken,
  curl_handle = session$curl,
  api_baseurl = session$base_url,
  end_point = "/api/auth/logout",
  api_url = paste0(api_baseurl, end_point),
  ...
)

Arguments

session

a list object created via create_session()

token

character, a session token,

curl_handle

a curl handle created by getCurlHandle(). If one is not provided, it will be created. Please note, it is best practice to establish a curl handle when interacting with an API

api_baseurl

character, the base URL for the database server

end_point

character, the API end point for the login

api_url

character, the URL for the database server login

...

additional arguments passed to RCurl::getURL()

Author(s)

Matt Espe


fishsciences/telemetry documentation built on May 31, 2024, 10:13 a.m.