-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
484a98d
commit ccec6ef
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
##' @importFrom assertthat assert_that is.flag | ||
## This endpoint currently returns JSON in XML with mime type as text/html | ||
.collection_find_collections <- function(property = NULL, value = NULL, | ||
verbose = FALSE, ...) { | ||
assertthat::assert_that(assertthat::is.flag(verbose)) | ||
req_body <- list() | ||
req_body$verbose <- verbose | ||
res <- otl_POST(path = "collections/find_collections", | ||
body = req_body, ...) | ||
res | ||
} | ||
|
||
.collection_properties <- function(...) { | ||
req_body <- list() | ||
res <- otl_POST(path = "collections/properties", | ||
body = req_body, ...) | ||
res | ||
} | ||
|
||
|
||
.get_collection <- function(owner_id = NULL, collection_name = NULL, ...) { | ||
assertthat::assert_that(assertthat::is.string(owner_id)) | ||
assertthat::assert_that(assertthat::is.string(collection_name)) | ||
req_body <- list() | ||
res <- otl_GET(path = paste("collections", owner_id, collection_name, | ||
sep = "/"), ...) | ||
res | ||
} |