File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ function Add-GoogleDriveFile {
3030 [string ]$FileName ,
3131
3232 [Parameter ()]
33- [string ]$TargetFolderName = " Open Live Writer " ,
33+ [string ]$TargetFolderName = " PSBlogger " ,
3434
3535 [Parameter ()]
3636 [switch ]$Force
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ Initiate a login flow with Google
2525Function Initialize-Blogger {
2626 Param (
2727 [Parameter (HelpMessage = " Google API ClientId" )]
28- [string ]$clientId = " 284606892422-ribvo7oodlbtd70e8onn8rg4hm58mluj.apps.googleusercontent.com " ,
28+ [string ]$clientId = " <<CLIENT_ID>> " ,
2929
3030 [Parameter (HelpMessage = " Google API Client Secret" )]
31- [string ]$clientSecret = " PUK0j9ig-GHcSByQao2i1aIa " ,
31+ [string ]$clientSecret = " <<CLIENT_SECRET>> " ,
3232
3333 [Parameter (HelpMessage = " Redirect Uri specified in Google API Consent Form" )]
3434 [string ]$redirectUri = " http://localhost/oauth2callback"
@@ -41,8 +41,7 @@ Function Initialize-Blogger {
4141 # specify the scopes we want in our auth token
4242 $scope = @ (
4343 " https://www.googleapis.com/auth/blogger"
44- # "https://www.googleapis.com/auth/drive.file" # TODO: fix
45- " https://www.googleapis.com/auth/drive"
44+ " https://www.googleapis.com/auth/drive.file"
4645
4746 ) -join " "
4847
You can’t perform that action at this time.
0 commit comments