Skip to content

Commit

Permalink
get_detections_retrieve() added
Browse files Browse the repository at this point in the history
  • Loading branch information
machmaleinheelflip committed Sep 17, 2024
1 parent 301b1e4 commit 17d5c50
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions R/api.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,28 @@ get_detections <- function(...) {



#' Get detections retrieve.
#'
#' Wrapper around the 'Retrieve Detections' endpoint to retrieve a single detection based on uid
#'
#' @param ... query paramaters. See \url(https://api.ecopi.de/api/docs/#tag/v0.1/operation/v0.1_detections_retrieve)
#'
#' @examples
#' # Retrieve a single detection for a specific uid
#' get_detections_retrieve(uid="64733fbc-7cc8-49f6-adf1-c9ec2d676959")
#'
#' @return A list containing the detection that match the specified query parameters: \url(https://api.ecopi.de/api/v0.1/docsco/#operation/detections_list)
#'
#' @export
get_detections_retrieve <- function(..., id_or_uid) {
# params <- list(...)
ecopi_api("GET /detections/{id_or_uid}/", id_or_uid = id_or_uid) |>
resp_body_json_to_df()
}




#' PATCH detection
#'
#' Wrapper around the 'ListView Detections' endpoint to update detections parameters based on the specified query parameters.
Expand Down

0 comments on commit 17d5c50

Please sign in to comment.