Skip to content

Commit

Permalink
Fix 404 error for query (fix #52)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEdmondson1234 committed Jun 8, 2018
1 parent fe12cc4 commit 4012df7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 6 additions & 4 deletions R/query.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ bqr_query <- function(projectId = bqr_get_global_project(),

body <- rmNullObs(body)

q <- googleAuthR::gar_api_generator("https://www.googleapis.com/bigquery/v2",
# solve 404?
the_url <- sprintf("https://www.googleapis.com/bigquery/v2/projects/%s/queries", projectId)

q <- googleAuthR::gar_api_generator(the_url,
"POST",
path_args = list(projects = projectId,
queries = ""),
data_parse_function = parse_bqr_query)
data_parse_function = parse_bqr_query,
checkTrailingSlash = FALSE)

data <- try(q(the_body = body,
path_arguments = list(projects = projectId)))
Expand Down
3 changes: 1 addition & 2 deletions man/bqr_auth.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4012df7

Please sign in to comment.