Skip to content

Commit

Permalink
Merge pull request #1 from c4r-io/use-api-key
Browse files Browse the repository at this point in the history
add code to generate token using own OAuth client
  • Loading branch information
ha0ye authored Jan 30, 2024
2 parents 90f4246 + b5f20d6 commit d5d387f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions R/scratchspace.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ update_parsing_dat <- FALSE
run_sync <- FALSE
check_roadmap_files <- FALSE
test_roadmap <- FALSE
generate_new_oauth_token <- FALSE

if (update_parsing_dat)
{
Expand Down Expand Up @@ -67,3 +68,12 @@ if (run_sync)

log_action("Ending Processing Loop")
}

if (generate_new_oauth_token)
{
googledrive::drive_auth_configure(path = ".secrets/gdrive-oauth.json")
googledrive::drive_oauth_client()
}



0 comments on commit d5d387f

Please sign in to comment.