mirror of https://github.com/vitalif/grive2
removed the "drive.file" scope as it's not needed
parent
f022afb407
commit
44d9adb46c
|
@ -181,10 +181,6 @@ void Drive::UpdateFile( const Json& entry )
|
|||
path = pit->Dir() / filename ;
|
||||
}
|
||||
|
||||
// std::cout << "here!" << std::endl ;
|
||||
std::cout << "file name " << path << std::endl ;
|
||||
// std::cout << "file time: " << entry["updated"]["$t"].As<std::string>() << " " << remote << " " << local << std::endl ;
|
||||
|
||||
// compare checksum first if file exists
|
||||
std::ifstream ifile( path.Str().c_str(), std::ios::binary | std::ios::out ) ;
|
||||
if ( ifile && entry.Has("docs$md5Checksum") )
|
||||
|
|
|
@ -74,8 +74,8 @@ std::string OAuth2::MakeAuthURL(
|
|||
Escape( "https://www.googleapis.com/auth/userinfo.profile" ) + "+" +
|
||||
Escape( "https://docs.google.com/feeds/" ) + "+" +
|
||||
Escape( "https://docs.googleusercontent.com/" ) + "+" +
|
||||
Escape( "https://spreadsheets.google.com/feeds/" ) + "+" +
|
||||
Escape( "https://www.googleapis.com/auth/drive.file/" ) +
|
||||
Escape( "https://spreadsheets.google.com/feeds/" ) + /*"+" +
|
||||
Escape( "https://www.googleapis.com/auth/drive.file/" ) +*/
|
||||
"&redirect_uri=urn:ietf:wg:oauth:2.0:oob"
|
||||
"&response_type=code"
|
||||
"&client_id=" + client_id ;
|
||||
|
|
Loading…
Reference in New Issue