Skip to content

Commit

Permalink
Merge pull request #21 from jonthegeek/more-cu-token
Browse files Browse the repository at this point in the history
Use supplied cu_token in first get batch
  • Loading branch information
psolymos authored Feb 1, 2024
2 parents 03019e6 + 950c5b5 commit 15f8881
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: clickrup
Type: Package
Title: Interacting with the ClickUp v2 API from R
Version: 0.0.5
Version: 0.0.6
Date: 2021-12-12
Authors@R:
c(person(given = "Peter",
Expand Down
2 changes: 1 addition & 1 deletion R/internals.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

## convenience function for GET requests with support for paging
.cu_get <- function(..., query=list(), paging=TRUE, cu_token = NULL) {
chunk <- .cu_get_page(..., query = query)
chunk <- .cu_get_page(..., query = query, cu_token = cu_token)
out <- chunk
page <- 0
while (paging && length(chunk) == 1 && length(chunk[[1]]) == 100) {
Expand Down

0 comments on commit 15f8881

Please sign in to comment.