Skip to content

Commit

Permalink
Update filtering syntax for NIH v2 API
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacOnline committed Mar 3, 2024
1 parent 16f0ece commit 69d889a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/nih.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ get_nih <- function(keyword, from_date, to_date, verbose=FALSE, payload=NULL) {
if (is.null(payload)) {
# httr encodes all this into json for a POST request
payload <- list(criteria=list(
award=list(award_notice_date=list(
award_notice_date=list(
from_date=from_date,
to_date=to_date)),
to_date=to_date),
exclude_subprojects="true",
advanced_text_search=list(
search_text=paste0("\"", keyword, "\""),
Expand Down

0 comments on commit 69d889a

Please sign in to comment.