removed the "drive.file" scope as it's not needed

pull/40/head
Matchman Green 2012-05-01 21:28:03 +08:00
parent f022afb407
commit 44d9adb46c
2 changed files with 2 additions and 6 deletions

View File

@ -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") )

View File

@ -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 ;